mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
26 lines
519 B
C++
26 lines
519 B
C++
#ifndef ADD_UNIT_COMMAND_H
|
|
#define ADD_UNIT_COMMAND_H
|
|
|
|
#include "abstractCommand.h"
|
|
|
|
#include <vector.h>
|
|
#include <quaternion.h>
|
|
|
|
namespace battleship{
|
|
class AddUnitCommand : public AbstractCommand{
|
|
public:
|
|
AddUnitCommand(std::string argsStr) : AbstractCommand(argsStr){}
|
|
void validate();
|
|
void execute();
|
|
private:
|
|
int playerId, unitId;
|
|
bool posEnabled, rotEnabled;
|
|
vb01::Vector3 pos = vb01::Vector3::VEC_ZERO;
|
|
vb01::Quaternion rot = vb01::Quaternion::QUAT_W;
|
|
|
|
void addUnit();
|
|
};
|
|
}
|
|
|
|
#endif
|