#pragma once #include #include #include #include namespace game { class Ship; class Command; class Missile; class Player { public: int id; bool alive; float energy; float deadTimeCounter; Ship *ship; std::vector missiles; Player(int id) : id(id), alive(true), energy(0.0), ship(nullptr) { } void addCommand(Command *cmd); bool hasCommandInQueue(); Command *peekCommand(); void popCommand(); private: std::deque commands; }; }