lots of initial design for the game, and unit data
This commit is contained in:
parent
6a17e4e4c1
commit
a17a9db2ad
5 changed files with 56 additions and 4 deletions
10
game/unit.h
10
game/unit.h
|
@ -4,6 +4,7 @@
|
|||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include "gametypes.h"
|
||||
#include "vector2.h"
|
||||
|
||||
// Type for the unit type-id
|
||||
|
@ -28,6 +29,15 @@ protected:
|
|||
|
||||
private:
|
||||
|
||||
// Unit ID
|
||||
unit_id_t id;
|
||||
|
||||
// Team ID
|
||||
team_id_t team_id;
|
||||
|
||||
// Owner ID
|
||||
player_id_t owner_id;
|
||||
|
||||
// All units must have position
|
||||
uvector2 pos;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue