mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
20 lines
383 B
C++
20 lines
383 B
C++
#ifndef ADD_RESOURCE_COMMAND_H
|
|
#define ADD_RESOURCE_COMMAND_H
|
|
|
|
#include "abstractCommand.h"
|
|
|
|
namespace battleship{
|
|
class AddResourceCommand : public AbstractCommand{
|
|
public:
|
|
AddResourceCommand(std::string argsStr) : AbstractCommand(argsStr){}
|
|
void execute();
|
|
private:
|
|
void validate();
|
|
void addResource();
|
|
|
|
int playerId, resourceId, resourceAmmount;
|
|
};
|
|
}
|
|
|
|
#endif
|