added elements in unit, map, game

This commit is contained in:
ProgramSnail 2021-04-12 01:51:12 +03:00
parent 220dd71d8f
commit 733bcbd99d
10 changed files with 116 additions and 16 deletions

View file

@ -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() {
}