rts_game_backend/src/game/map_entities/unit_obj.hpp

24 lines
539 B
C++
Raw Normal View History

2021-03-22 19:37:34 +03:00
#include <utility>
#include <cstdint>
#include "cell.hpp"
2021-04-12 01:51:12 +03:00
#include "../game_map.hpp"
2021-03-22 19:37:34 +03:00
2021-03-24 20:31:44 +03:00
#pragma once
2021-03-22 19:37:34 +03:00
namespace map {
2021-03-24 20:31:44 +03:00
class UnitObj { // may be useless
2021-03-22 19:37:34 +03:00
private:
2021-03-24 20:31:44 +03:00
using Coord = std::pair<int32_t, int32_t>;
Coord pos;
Coord size;
2021-03-22 19:37:34 +03:00
CellType cellType;
public:
2021-04-12 01:51:12 +03:00
UnitObj() {}
UnitObj(const Coord& pos, const Coord& size,
const CellType& cellType, map::GameMap* map) :
pos(pos), size(size), cellType(cellType) {}
2021-03-22 19:37:34 +03:00
void updateAll() {
}
};
}