1 #ifndef GAMES_NECROWAR_AI_HPP
2 #define GAMES_NECROWAR_AI_HPP
4 #include "impl/necrowar.hpp"
6 #include "game_object.hpp"
10 #include "tower_job.hpp"
12 #include "unit_job.hpp"
14 #include "../../joueur/src/base_ai.hpp"
15 #include "../../joueur/src/attr_wrapper.hpp"
52 virtual std::string
get_name()
const override;
57 virtual void start()
override;
64 virtual void ended(
bool won,
const std::string& reason)
override;
93 virtual std::string invoke_by_name(
const std::string& name,
94 const std::unordered_map<std::string, Any>& args)
override;
95 virtual void set_game(Base_game* ptr)
override;
96 virtual void set_player(std::shared_ptr<Base_object> obj)
override;
97 virtual void print_win_loss_info()
override;
109 #endif // GAMES_NECROWAR_AI_HPP
This is the header file for building your Necrowar AI
Definition: ai.hpp:30
A Tile in the game that makes up the 2D map grid.
Definition: tile.hpp:37
std::vector< Tile > find_path(const Tile &start, const Tile &goal)
Definition: ai.cpp:77
Player player
This is a pointer to your AI's player. This AI class is not a player, but it should command this Play...
Definition: ai.hpp:41
virtual std::string get_name() const override
This returns your AI's name to the game server. Replace the string name.
Definition: ai.cpp:21
A player in this game. Every AI controls one player.
Definition: player.hpp:37
Game game
This is a reference to the Game object itself, it contains all the information about the current game...
Definition: ai.hpp:36
virtual void game_updated() override
This is automatically called the game (or anything in it) updates
Definition: ai.cpp:42
virtual void ended(bool won, const std::string &reason) override
This is automatically called when the game ends.
Definition: ai.cpp:54
Definition: base_ai.hpp:16
virtual void start() override
This is automatically called when the game first starts, once the game objects are created ...
Definition: ai.cpp:32
Send hordes of the undead at your opponent while defending yourself against theirs to win...
Definition: game.hpp:45
bool run_turn()
This is called every time it is this AI.player's turn.
Definition: ai.cpp:65