Deep RTS
include
DeepRTS
gamestate
AddUnit.h
Go to the documentation of this file.
1
//
2
// Created by per on 23.03.18.
3
//
4
5
#ifndef DEEPRTS_ADDUNIT_H
6
#define DEEPRTS_ADDUNIT_H
7
8
9
#include "
StateChange.h
"
10
11
class
Game
;
12
class
AddUnit
:
StateChange
{
13
int
id;
14
int
type;
15
int
player_id;
16
17
AddUnit
(
int
id
,
int
type,
int
player_id): id(
id
), type(type), player_id(player_id){}
18
19
20
void
apply(
Game
*game);
21
22
void
apply_reverse(
Game
*game);
23
};
24
25
26
#endif
//DEEPRTS_ADDUNIT_H
StateChange.h
AddUnit
Definition:
AddUnit.h:12
Game
Definition:
Game.h:23
StateChange
Definition:
StateChange.h:8
Generated by
1.9.2