#include <ai_python.hpp>
Public Member Functions | |
python_ai (ai_interface::info &info) | |
virtual | ~python_ai () |
virtual void | play_turn () |
Function that is called when the AI must play its turn. | |
W (team_targets) | |
W (get_units) | |
W (log_message) | |
W (log) | |
W (get_location) | |
W (get_map) | |
W (get_teams) | |
W (get_current_team) | |
W (get_src_dst) | |
W (get_dst_src) | |
W (get_enemy_src_dst) | |
W (get_enemy_dst_src) | |
W (move_unit) | |
W (attack_unit) | |
W (get_adjacent_tiles) | |
W (recruit_unit) | |
W (get_gamestatus) | |
W (set_variable) | |
W (get_variable) | |
W (get_version) | |
W (raise_user_interact) | |
W (test_move) | |
std::vector< team > & | get_teams () |
Static Public Member Functions | |
static PyObject * | wrapper_unit_movement_cost (wesnoth_unit *, PyObject *args) |
static PyObject * | wrapper_unit_defense_modifier (wesnoth_unit *, PyObject *args) |
static PyObject * | wrapper_unittype_movement_cost (wesnoth_unittype *, PyObject *args) |
static PyObject * | wrapper_unittype_defense_modifier (wesnoth_unittype *, PyObject *args) |
static PyObject * | unittype_advances_to (wesnoth_unittype *type, PyObject *args) |
static PyObject * | wrapper_team_recruits (wesnoth_team *team, PyObject *args) |
static PyObject * | wrapper_unit_find_path (wesnoth_unit *unit, PyObject *args) |
static PyObject * | wrapper_unit_attack_statistics (wesnoth_unit *unit, PyObject *args) |
static bool | is_unit_valid (const unit *unit) |
static std::vector< std::string > | get_available_scripts () |
static void | initialize_python () |
static void | invoke (std::string name) |
Private Attributes | |
end_level_exception | exception |
ai_interface::move_map | src_dst_ |
ai_interface::move_map | dst_src_ |
std::map< location, paths > | possible_moves_ |
ai_interface::move_map | enemy_src_dst_ |
ai_interface::move_map | enemy_dst_src_ |
std::map< location, paths > | enemy_possible_moves_ |
Static Private Attributes | |
static bool | init_ |
Friends | |
void | recalculate_movemaps () |
Definition at line 42 of file ai_python.hpp.
python_ai::python_ai | ( | ai_interface::info & | info | ) |
virtual python_ai::~python_ai | ( | ) | [virtual] |
virtual void python_ai::play_turn | ( | ) | [virtual] |
Function that is called when the AI must play its turn.
Derived classes should implement their AI algorithm in this function.
Implements ai_interface.
static PyObject* python_ai::wrapper_unit_movement_cost | ( | wesnoth_unit * | , | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_unit_defense_modifier | ( | wesnoth_unit * | , | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_unittype_movement_cost | ( | wesnoth_unittype * | , | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_unittype_defense_modifier | ( | wesnoth_unittype * | , | |
PyObject * | args | |||
) | [static] |
python_ai::W | ( | team_targets | ) |
python_ai::W | ( | get_units | ) |
python_ai::W | ( | log_message | ) |
python_ai::W | ( | log | ) |
python_ai::W | ( | get_location | ) |
python_ai::W | ( | get_map | ) |
python_ai::W | ( | get_teams | ) |
python_ai::W | ( | get_current_team | ) |
python_ai::W | ( | get_src_dst | ) |
python_ai::W | ( | get_dst_src | ) |
python_ai::W | ( | get_enemy_src_dst | ) |
python_ai::W | ( | get_enemy_dst_src | ) |
python_ai::W | ( | move_unit | ) |
python_ai::W | ( | attack_unit | ) |
python_ai::W | ( | get_adjacent_tiles | ) |
python_ai::W | ( | recruit_unit | ) |
python_ai::W | ( | get_gamestatus | ) |
python_ai::W | ( | set_variable | ) |
python_ai::W | ( | get_variable | ) |
python_ai::W | ( | get_version | ) |
python_ai::W | ( | raise_user_interact | ) |
python_ai::W | ( | test_move | ) |
static PyObject* python_ai::unittype_advances_to | ( | wesnoth_unittype * | type, | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_team_recruits | ( | wesnoth_team * | team, | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_unit_find_path | ( | wesnoth_unit * | unit, | |
PyObject * | args | |||
) | [static] |
static PyObject* python_ai::wrapper_unit_attack_statistics | ( | wesnoth_unit * | unit, | |
PyObject * | args | |||
) | [static] |
static bool python_ai::is_unit_valid | ( | const unit * | unit | ) | [static] |
std::vector<team>& python_ai::get_teams | ( | ) | [inline] |
Definition at line 83 of file ai_python.hpp.
References ai_interface::get_info(), and ai_interface::info::teams.
static std::vector<std::string> python_ai::get_available_scripts | ( | ) | [static] |
Referenced by get_available_ais().
static void python_ai::initialize_python | ( | ) | [static] |
static void python_ai::invoke | ( | std::string | name | ) | [static] |
Referenced by play_game().
void recalculate_movemaps | ( | ) | [friend] |
bool python_ai::init_ [static, private] |
Definition at line 90 of file ai_python.hpp.
end_level_exception python_ai::exception [private] |
Definition at line 92 of file ai_python.hpp.
ai_interface::move_map python_ai::src_dst_ [private] |
Definition at line 93 of file ai_python.hpp.
ai_interface::move_map python_ai::dst_src_ [private] |
Definition at line 94 of file ai_python.hpp.
std::map<location,paths> python_ai::possible_moves_ [private] |
Definition at line 95 of file ai_python.hpp.
Definition at line 96 of file ai_python.hpp.
Definition at line 97 of file ai_python.hpp.
std::map<location,paths> python_ai::enemy_possible_moves_ [private] |
Definition at line 98 of file ai_python.hpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |