rts_game_backend/src/game/map_entities/unit_obj.hpp

23 lines
469 B
C++
Raw Normal View History

2021-03-22 19:37:34 +03:00
#include <utility>
#include <cstdint>
#include "cell.hpp"
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-03-24 20:31:44 +03:00
UnitObj(const Coord& pos, const Coord& size, const CellType& cellType) :
pos(pos), size(size), cellType(cellType) {
2021-03-22 19:37:34 +03:00
}
void updateAll() {
}
};
}