mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2026-01-11 22:17:15 +00:00
added factory, unit maiden easier
This commit is contained in:
parent
52024e4b06
commit
1c87c30dda
13 changed files with 230 additions and 69 deletions
|
|
@ -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) {}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue