rts_game_backend/src/game/unit/unit.hpp

23 lines
416 B
C++
Raw Normal View History

2021-03-22 19:37:34 +03:00
#include <vector>
2021-03-24 20:31:44 +03:00
#include "../game_map.hpp"
2021-03-22 19:37:34 +03:00
#include "unit_module.hpp"
2021-03-24 20:31:44 +03:00
#pragma once
2021-03-22 19:37:34 +03:00
namespace unit {
class Unit {
private:
2021-04-11 12:45:39 +03:00
// parts of unit, that do something
2021-03-22 19:37:34 +03:00
std::vector<Module> modules;
2021-04-11 12:45:39 +03:00
// memory, help modules communicate and handle events
std::vector<int> memory;
map::GameMap* map;
2021-03-22 19:37:34 +03:00
public:
Unit();
2021-03-24 20:31:44 +03:00
void update();
2021-03-22 19:37:34 +03:00
};
2021-04-11 12:45:39 +03:00
}