added factory, unit maiden easier

This commit is contained in:
ProgramSnail 2021-05-18 17:43:03 +03:00
parent 52024e4b06
commit 1c87c30dda
13 changed files with 230 additions and 69 deletions

View file

@ -2,23 +2,26 @@
namespace map {
enum class CellType {
ctNone,
ctUnit,
ctWeapon,
ctForest,
ctMoutain
none,
unit,
weapon,
forest,
moutain
};
enum class CellPlayer {
cpNone,
cpPlayer0,
cpPlayer1,
cpPlayer2,
cpPlayer3
none,
player0,
player1,
player2,
player3
};
struct Cell {
CellType type = CellType::ctNone;
CellPlayer player = CellPlayer::cpNone;
CellType type;
CellPlayer player;
Cell(CellType type = CellType::none,
CellPlayer player = CellPlayer::none)
: type(type), player(player) {}
};
}