1 #ifndef TOWER_DEFENCE_2_GAME_H 2 #define TOWER_DEFENCE_2_GAME_H 6 #include "objects/enemy.h" 7 #include "objects/tower.h" 43 GameEngine(
double time,
double timestep,
int score,
49 const double timestep()
const;
104 GameState
update(graphicsEngine& gE);
128 std::vector<int> high_score(
const std::string &filename);
136 #include "Graphics/graphicsEngine.h" 139 #endif //TOWER_DEFENCE_2_GAME_H void upgrade_tower(int x, int y, int index)
Upgrade existing tower into new one.
Definition: engine.cpp:80
GameMap game_map()
Getter for game map.
Definition: engine.cpp:41
void enemy_movement()
Definition: engine.cpp:122
Enemy class.
Definition: enemy.h:12
void change_targeting(TargetingPolicy new_policy)
Change targeting policy of all towers.
Definition: engine.cpp:90
void add_enemy(Enemy *enemy)
Add new enemy to game map.
Definition: engine.cpp:102
Tower class.
Definition: tower.h:13
void change_game_speed(GameSpeed new_speed)
Change the game speed to fast or normal.
Definition: engine.cpp:53
GameState update(graphicsEngine &gE)
Definition: engine.cpp:236
void reduce_life()
Definition: engine.cpp:76
void advance_game_level()
Definition: engine.cpp:106
friend bool update_high_score(const std::string &filename, GameEngine engine)
Definition: engine.cpp:275
void towers_attack(graphicsEngine &gE)
Definition: engine.cpp:206
bool add_money(int amount)
Definition: engine.cpp:66
Enemy * find_targets(Tower *tower, Enemies &enemies)
Definition: engine.cpp:144
void increment_time()
Increments the game time by one timestep.
Definition: engine.cpp:232
void add_score(int amount)
Change player's score. Game score can't go below zero.
Definition: engine.cpp:45