2021-03-24 20:31:44 +03:00
|
|
|
#pragma once
|
2021-03-22 19:37:34 +03:00
|
|
|
|
|
|
|
|
namespace map {
|
2021-04-12 01:51:12 +03:00
|
|
|
enum class CellType {
|
2021-05-18 17:43:03 +03:00
|
|
|
none,
|
|
|
|
|
unit,
|
|
|
|
|
weapon,
|
|
|
|
|
forest,
|
|
|
|
|
moutain
|
2021-03-22 19:37:34 +03:00
|
|
|
};
|
|
|
|
|
|
2021-04-11 12:45:39 +03:00
|
|
|
enum class CellPlayer {
|
2021-05-18 17:43:03 +03:00
|
|
|
none,
|
|
|
|
|
player0,
|
|
|
|
|
player1,
|
|
|
|
|
player2,
|
|
|
|
|
player3
|
2021-03-22 19:37:34 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct Cell {
|
2021-05-18 17:43:03 +03:00
|
|
|
CellType type;
|
|
|
|
|
CellPlayer player;
|
|
|
|
|
Cell(CellType type = CellType::none,
|
|
|
|
|
CellPlayer player = CellPlayer::none)
|
|
|
|
|
: type(type), player(player) {}
|
2021-03-22 19:37:34 +03:00
|
|
|
};
|
2021-04-11 12:45:39 +03:00
|
|
|
}
|