mirror of
https://github.com/ProgramSnail/rts_game_backend.git
synced 2025-12-06 01:38:42 +00:00
22 lines
416 B
C++
22 lines
416 B
C++
#include <vector>
|
|
#include "../game_map.hpp"
|
|
#include "unit_module.hpp"
|
|
|
|
#pragma once
|
|
|
|
namespace unit {
|
|
class Unit {
|
|
private:
|
|
// parts of unit, that do something
|
|
std::vector<Module> modules;
|
|
|
|
// memory, help modules communicate and handle events
|
|
std::vector<int> memory;
|
|
|
|
map::GameMap* map;
|
|
public:
|
|
Unit();
|
|
|
|
void update();
|
|
};
|
|
}
|