#include <ai_interface.hpp>
Public Member Functions | |
info (game_display &disp, const gamemap &map, unit_map &units, std::vector< team > &teams, unsigned int team_num, const gamestatus &state, class turn_info &turn_data, class game_state &game_state) | |
Public Attributes | |
game_display & | disp |
The display object, used to draw the moves the AI makes. | |
const gamemap & | map |
The map of the game -- use this object to find the terrain at any location. | |
unit_map & | units |
The map of units. It maps locations -> units. | |
std::vector< team > & | teams |
A list of the teams in the game. | |
unsigned int | team_num |
The number of the team the AI is. | |
const gamestatus & | state |
Information about what turn it is, and what time of day. | |
class turn_info & | turn_data_ |
The object that allows the player to interact with the game. | |
class game_state & | game_state_ |
The global game state, because we may set the completion field. |
Definition at line 40 of file ai_interface.hpp.
ai_interface::info::info | ( | game_display & | disp, | |
const gamemap & | map, | |||
unit_map & | units, | |||
std::vector< team > & | teams, | |||
unsigned int | team_num, | |||
const gamestatus & | state, | |||
class turn_info & | turn_data, | |||
class game_state & | game_state | |||
) | [inline] |
Definition at line 41 of file ai_interface.hpp.
The display object, used to draw the moves the AI makes.
Definition at line 47 of file ai_interface.hpp.
Referenced by ai_interface::attack_enemy(), ai_interface::diagnostic(), ai_interface::log_message(), and ai_interface::move_unit_partial().
const gamemap& ai_interface::info::map |
The map of the game -- use this object to find the terrain at any location.
Definition at line 50 of file ai_interface.hpp.
Referenced by ai::analyze_potential_recruit_movements(), ai_interface::attack_enemy(), sample_ai::do_attacks(), ai_interface::get_value(), sample_ai::get_villages(), ai::move_leader_to_goals(), ai_interface::move_unit_partial(), and ai_interface::recruit().
The map of units. It maps locations -> units.
Definition at line 53 of file ai_interface.hpp.
Referenced by dfool::dfool_ai::all_units(), ai_interface::attack_enemy(), sample_ai::do_attacks(), sample_ai::do_moves(), formula_ai::execute_variant(), ai_interface::get_value(), ai_interface::move_unit(), ai_interface::move_unit_partial(), ai_interface::recruit(), and dfool::dfool_ai::visible_units().
std::vector<team>& ai_interface::info::teams |
A list of the teams in the game.
Definition at line 56 of file ai_interface.hpp.
Referenced by ai_interface::attack_enemy(), ai_interface::current_team(), python_ai::get_teams(), ai_interface::get_value(), ai_interface::move_unit_partial(), and ai_interface::recruit().
unsigned int ai_interface::info::team_num |
The number of the team the AI is.
Note: this number is 1-based, so 1 must be subtracted for using it as index of 'teams'.
Definition at line 61 of file ai_interface.hpp.
Referenced by ai_interface::current_team(), ai_interface::get_value(), ai_interface::move_unit_partial(), formula_ai::play_turn(), dfool::dfool_ai::play_turn(), and ai_interface::recruit().
Information about what turn it is, and what time of day.
Definition at line 64 of file ai_interface.hpp.
Referenced by ai_interface::attack_enemy(), ai_interface::get_value(), and ai_interface::recruit().
The object that allows the player to interact with the game.
Should not be used outside of ai_interface.
Definition at line 68 of file ai_interface.hpp.
The global game state, because we may set the completion field.
Definition at line 71 of file ai_interface.hpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |