mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2026-01-25 12:57:08 +00:00
added elements in unit, map, game
This commit is contained in:
parent
220dd71d8f
commit
733bcbd99d
10 changed files with 116 additions and 16 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <utility>
|
||||
#include <cstdint>
|
||||
#include "cell.hpp"
|
||||
#include "../game_map.hpp"
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
@ -12,10 +13,10 @@ namespace map {
|
|||
Coord size;
|
||||
CellType cellType;
|
||||
public:
|
||||
UnitObj(const Coord& pos, const Coord& size, const CellType& cellType) :
|
||||
pos(pos), size(size), cellType(cellType) {
|
||||
|
||||
}
|
||||
UnitObj() {}
|
||||
UnitObj(const Coord& pos, const Coord& size,
|
||||
const CellType& cellType, map::GameMap* map) :
|
||||
pos(pos), size(size), cellType(cellType) {}
|
||||
void updateAll() {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue