rts_game_backend/src/game/map_entities/unit_obj.hpp

29 lines
549 B
C++
Raw Normal View History

2021-03-22 19:37:34 +03:00
#include <utility>
#include <cstdint>
#include "cell.hpp"
#include "../unit/unit.hpp"
#pragma ONCE
namespace map {
class UnitObj {
private:
Unit* unit;
std::pair<int32_t, int32_t> pos;
std::pair<int32_t, int32_t> size;
CellType cellType;
public:
UnitObj(Unit* unit) : unit(unit) {
}
void updateValues() {
// from unit size, pos
}
void updatePosition() {
// from unit position
}
void updateAll() {
}
};
}