The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Typedefs | Enumerations | Functions
game_logic Namespace Reference

Classes

class  ai_function_symbol_table
 
class  attack_callable
 
class  attack_candidate_action
 
class  attack_map_callable
 
class  base_breakpoint
 
class  base_candidate_action
 
class  builtin_formula_function
 
class  candidate_action_with_filters
 
class  debug_info
 
class  end_breakpoint
 
class  fallback_callable
 
class  formula
 
class  formula_callable
 
class  formula_callable_no_ref_count
 
class  formula_callable_with_backup
 
class  formula_debugger
 
struct  formula_error
 
class  formula_expression
 
class  formula_function
 
class  formula_function_expression
 
struct  formula_input
 
class  formula_variant_callable_with_backup
 
class  function_expression
 
class  function_symbol_table
 
class  key_value_pair
 
class  map_formula_callable
 
class  move_callable
 
class  move_candidate_action
 
class  move_map_callable
 
class  move_partial_callable
 
class  next_breakpoint
 
class  outcome_callable
 
class  position_callable
 
class  recall_callable
 
class  recruit_callable
 
class  safe_call_callable
 
class  safe_call_result
 
class  set_unit_var_callable
 
class  set_var_callable
 
class  step_in_breakpoint
 
class  step_out_breakpoint
 
struct  unit_formula_compare
 
class  user_formula_function
 
class  wrapper_formula
 

Typedefs

typedef std::pair
< unit_map::unit_iterator, int
unit_formula_pair
 
typedef std::multiset
< unit_formula_pair,
game_logic::unit_formula_compare
unit_formula_set
 
typedef std::map< std::string,
game_logic::const_formula_ptr
candidate_action_filters
 
typedef boost::shared_ptr
< game_logic::base_candidate_action
candidate_action_ptr
 
typedef boost::intrusive_ptr
< map_formula_callable
map_formula_callable_ptr
 
typedef boost::intrusive_ptr
< const map_formula_callable
const_map_formula_callable_ptr
 
typedef boost::intrusive_ptr
< formula_callable
formula_callable_ptr
 
typedef boost::intrusive_ptr
< const formula_callable
const_formula_callable_ptr
 
typedef boost::shared_ptr
< base_breakpoint
breakpoint_ptr
 
typedef boost::shared_ptr
< formula_expression
expression_ptr
 
typedef boost::shared_ptr
< formula
formula_ptr
 
typedef boost::shared_ptr
< const formula
const_formula_ptr
 
typedef boost::shared_ptr
< function_expression
function_expression_ptr
 
typedef boost::shared_ptr
< formula_function
formula_function_ptr
 
typedef std::map< std::string,
formula_function_ptr
functions_map
 

Enumerations

enum  FORMULA_ACCESS_TYPE { FORMULA_READ_ONLY, FORMULA_WRITE_ONLY, FORMULA_READ_WRITE }
 

Functions

static void msg (const char *act, debug_info &i, const char *to="", const char *result="")
 
formula_debuggeradd_debug_info (formula_debugger *fdb, int arg_number, const std::string &f_name)
 
variant evaluate_arg_callback (formula_debugger &fdb, const formula_expression &expression, const formula_callable &variables)
 
variant evaluate_formula_callback (formula_debugger &fdb, const formula &f, const formula_callable &variables)
 
variant evaluate_formula_callback (formula_debugger &fdb, const formula &f)
 
expression_ptr create_function (const std::string &fn, const std::vector< expression_ptr > &args, const function_symbol_table *symbols)
 
std::vector< std::stringbuiltin_function_names ()
 

Typedef Documentation

Definition at line 40 of file debugger_fwd.hpp.

Definition at line 34 of file candidates.hpp.

Definition at line 37 of file candidates.hpp.

Definition at line 25 of file callable_fwd.hpp.

Definition at line 26 of file formula_fwd.hpp.

Definition at line 177 of file callable.hpp.

Definition at line 26 of file formula.hpp.

Definition at line 23 of file callable_fwd.hpp.

Definition at line 133 of file function.hpp.

Definition at line 24 of file formula_fwd.hpp.

Definition at line 98 of file function.hpp.

Definition at line 134 of file function.hpp.

Definition at line 176 of file callable.hpp.

Definition at line 55 of file ai.hpp.

Definition at line 65 of file ai.hpp.

Enumeration Type Documentation

Enumerator
FORMULA_READ_ONLY 
FORMULA_WRITE_ONLY 
FORMULA_READ_WRITE 

Definition at line 24 of file callable.hpp.

Function Documentation

formula_debugger * game_logic::add_debug_info ( formula_debugger *  fdb,
int  arg_number,
const std::string f_name 
)

Definition at line 26 of file debugger_fwd.cpp.

References game_logic::formula_debugger::add_debug_info().

std::vector< std::string > game_logic::builtin_function_names ( )

Definition at line 1651 of file function.cpp.

expression_ptr game_logic::create_function ( const std::string fn,
const std::vector< expression_ptr > &  args,
const function_symbol_table *  symbols 
)
variant game_logic::evaluate_arg_callback ( formula_debugger &  fdb,
const formula_expression &  expression,
const formula_callable &  variables 
)
variant game_logic::evaluate_formula_callback ( formula_debugger &  fdb,
const formula &  f,
const formula_callable &  variables 
)
variant game_logic::evaluate_formula_callback ( formula_debugger &  fdb,
const formula &  f 
)
static void game_logic::msg ( const char *  act,
debug_info &  i,
const char *  to = "",
const char *  result = "" 
)
static

Definition at line 112 of file debugger.cpp.

References game_logic::debug_info::counter(), DBG_FDB, game_logic::debug_info::name(), and game_logic::debug_info::str().

Referenced by unit_type_data::add_advancement(), display_chat_manager::add_chat_message(), mp::chat::add_message(), wesnothd::server::adminmsg_handler(), gui2::build(), events::chat_handler::change_logging(), checkrepeated(), gui2::tlobby_main::close_window(), closegoto(), ng::configure_engine::configure_engine(), help::convert_to_wml(), mapgen_lua_kernel::create_map(), lua_map_generator::create_map(), mapgen_lua_kernel::create_scenario(), lua_map_generator::create_scenario(), db_traceback(), gui::dialog::dialog(), set_scontext_synced::do_final_checkup(), events::menu_handler::do_recruit(), events::chat_command_handler::do_register(), events::menu_handler::do_search(), errorlimit(), game_logic::formula_debugger::evaluate_arg_callback(), game_logic::formula_debugger::evaluate_formula_callback(), game_events::t_pump::fill_wml_messages_map(), finalreport(), findloader(), GCTM(), help::generate_contents(), editor::terrain_palette::get_help_string(), config::get_old_attribute(), events::menu_handler::get_title_suffix(), help::help_browser::handle_event(), mp::ui::handle_event(), wesnothd::server::handle_nickserv(), help::help_text_area::handle_ref_cfg(), config::has_old_attribute(), incomplete(), intf_find_path(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_log(), editor::context_manager::load_map(), application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), gui2::tgui_definition::load_widget_definitions(), lua_kernel_base::log_error(), ai_testing::log_turn(), lua_map_generator::lua_map_generator(), luaO_pushfstring(), ng::depcheck::MAKE_ENUM(), help::parse_text(), suh::password_reminder(), wesnothd::game::perform_controller_tweaks(), wesnothd::server::pm_handler(), wesnothd::server::process_command(), mp::ui::process_message(), wesnothd::room_manager::process_message(), wesnothd::game::process_message(), turn_info::process_network_data(), play_controller::process_oos(), wesnothd::room_manager::process_room_join(), wesnothd::room_manager::process_room_part(), wesnothd::room_manager::process_room_query(), wesnothd::game::process_turn(), wesnothd::game::process_whiteboard(), lua_kernel_base::protected_call(), events::menu_handler::recall(), actions::undo::recruit_action::redo(), actions::undo::recall_action::redo(), report(), events::menu_handler::save_map(), editor::map_context::save_map(), editor::map_context::save_scenario(), events::menu_handler::search(), searchpath(), mp::ui::send_chat_message(), gui2::tlobby_main::send_chat_message(), campaignd::server::send_error(), campaignd::server::send_message(), gui2::tlobby_main::send_message_button_callback(), wesnothd::send_server_message(), wesnothd::room::send_server_message(), wesnothd::game::send_server_message(), help::help_text_area::set_items(), help::show_help(), lua_gui2::show_popup_dialog(), game_events::t_pump::show_wml_messages(), wesnothd::game::start_game(), help::help_text_area::str_to_align(), traceback(), wesnothd::game::transfer_side_control(), gui2::twindow_builder::tresolution::tresolution(), typeerror(), undefgoto(), lua_map_generator::user_config(), vgettext(), vngettext(), and editor::wrap_exc().