|
ORTS
|
#include <SimpleTerrainWidget.H>
Public Types | |
| enum | Layout { FLOATER = 0, TOP = 1, BOTTOM = 2, LEFT = 4, RIGHT = 16, INSIDE = 32, OUTSIDE = 64, VERTICAL = 128, HORIZONTAL = 256, DIAGONAL = 512, FLOATER = 0, TOP = 1, BOTTOM = 2, LEFT = 4, RIGHT = 16, INSIDE = 32, OUTSIDE = 64, VERTICAL = 128, HORIZONTAL = 256, DIAGONAL = 512 } |
| enum | Layout { FLOATER = 0, TOP = 1, BOTTOM = 2, LEFT = 4, RIGHT = 16, INSIDE = 32, OUTSIDE = 64, VERTICAL = 128, HORIZONTAL = 256, DIAGONAL = 512, FLOATER = 0, TOP = 1, BOTTOM = 2, LEFT = 4, RIGHT = 16, INSIDE = 32, OUTSIDE = 64, VERTICAL = 128, HORIZONTAL = 256, DIAGONAL = 512 } |
Public Member Functions | |
| SimpleTerrainWidget (const ST_Terrain &terrain, GfxModule *gfxm=0) | |
| SimpleTerrainWidget (const ST_ForceField &terrain, GfxModule *gfxm=0) | |
| ~SimpleTerrainWidget () | |
| virtual stype | event_key_down (stype key, stype mod, stype x, stype y) |
| virtual stype | draw () |
| void | set_position (sint4 x, sint4 y) |
| void | set_position (sint4 x, sint4 y) |
| void | set_size (sint4 w, sint4 h) |
| void | set_size (sint4 w, sint4 h) |
| void | set_name (const std::string &s) |
| void | set_name (const char *s) |
| void | set_name (const std::string &s) |
| void | set_name (char *s) |
| std::string | bp_name () const |
| std::string | bp_name () const |
| const char * | get_name () const |
| const char * | get_name () const |
| void | turn_off () |
| void | turn_off () |
| void | turn_on () |
| void | turn_on () |
| bool | is_turned_on () |
| bool | is_turned_on () |
| void | set_layout (sint4 layout) |
| void | set_layout (sint4 layout, ScriptObj *wrt) |
| void | set_layout (sint4 layout) |
| void | set_layout (sint4 layout, ScriptObj *wrt) |
| sint4 | get_layout () const |
| sint4 | get_layout () const |
| ScriptObj * | get_layout_wrt () const |
| ScriptObj * | get_layout_wrt () const |
| virtual ObjAction * | action (const std::string &) const |
| virtual ObjAction * | action (const std::string &) const |
| virtual ObjAction * | action (sint4) const |
| virtual sintptr * | get_int_ptr (const std::string &) |
| virtual const sintptr * | get_int_ptr (const std::string &) const |
| virtual sintptr * | get_int_ptr (const std::string &) |
| virtual const sintptr * | get_int_ptr (const std::string &) const |
| void | save (std::ostream &os) const |
| void | load (std::istream &is) |
| void | add_ref () |
| void | del_ref () |
| virtual sint4 | get_refs () const |
| virtual void | enable () |
| virtual void | disable () |
| virtual bool | is_enabled () |
| void | kill () |
| bool | is_dead () const |
| virtual uint4 | code () const |
| virtual void | attr_names (Vector< std::string > &) const |
| virtual bool | has_attr (const std::string &) const |
| virtual bool | attr_changed (const std::string &) const |
| virtual stype | get_val (const std::string &) const |
| virtual stype | get_val_prev (const std::string &) const |
| virtual stype * | get_val_ptr (const std::string &) |
| virtual const stype * | get_val_ptr (const std::string &) const |
| virtual void | set_val (const std::string &name, stype val, bool warn=true) |
| virtual sint4 | get_int (const std::string &) const |
| virtual sint4 | get_int_prev (const std::string &) const |
| virtual void | set_int (const std::string &name, sint4 val, bool warn=true) |
| virtual void | gen_diff (bool, bool, std::string &, PlayerInfo *) const |
| virtual void | gen_comp_diff (bool first, bool allied, std::string &s, PlayerInfo *pi) const |
| virtual bool | apply_diff (ByteStream &, PlayerInfo *) |
| virtual bool | apply_comp_diff (bool, ByteStream &s, bool, PlayerInfo *pi) |
| virtual void | copy_to_prev () |
| virtual void | reset_frame_data () |
| virtual void | action_names (Vector< std::string > &) const |
| virtual uint4 | set_action (const std::string &, const Vector< sint4 > &, sint4=1) |
| virtual uint4 | set_action (sint4, const Vector< sint4 > &, sint4=1) |
| virtual void | clear_action () |
| virtual std::string | write_action (ObjId) const |
| virtual sint4 | action_id (const std::string &) const |
| virtual bool | action_enabled (sint4) const |
| virtual bool | action_enabled (const std::string &) const |
| virtual bool | action_hidden (sint4) const |
| virtual bool | action_hidden (const std::string &) const |
| virtual void | component_names (Vector< std::string > &) const |
| virtual ScriptObj * | component (const std::string &) const |
| virtual ScriptObj * | action_component (sint4) const |
| virtual void | construct () |
| virtual void | destruct () |
| virtual GameObj * | get_GameObj () |
| ObjId | uid () const |
Static Public Member Functions | |
| static void | get_ids (Vector< ScriptObj * > &objs, Vector< ObjId > &ids) |
| Intended for use in saving/loading the game state in combination with set_ids. | |
| static void | set_ids (const Vector< ScriptObj * > &objs, const Vector< ObjId > &ids) |
| Intended for use in saving/loading the game state in combination with get_ids. | |
| static void | check_ptr (ScriptObj *) |
| static void | collect_dead (std::set< ScriptObj * > &dead) |
| Call script destructors for dead objects. | |
| static void | collect_destroyed () |
| Delete dead objects that aren't being referenced. | |
| static ObjId | get_obj_id (ScriptObj *s) |
Public Attributes | |
| ScriptObj * | parent |
| The object that this is a node of (can be self referential). | |
| PlayerInfo * | creator |
Static Public Attributes | |
| static std::set< ScriptObj * > | ptr_list |
Protected Member Functions | |
| void | draw_grid (sint4 tx, sint4 ty) |
| void | draw_grid (sint4 tx, sint4 ty) |
| virtual stype | event_mouse_motion (stype, stype, stype) |
| virtual stype | event_mouse_motion (stype, stype, stype) |
| virtual stype | event_mouse_hover (stype, stype, stype) |
| virtual stype | event_mouse_hover (stype, stype, stype) |
| virtual stype | event_mouse_down (stype, stype, stype) |
| virtual stype | event_mouse_down (stype, stype, stype) |
| virtual stype | event_mouse_up (stype, stype, stype) |
| virtual stype | event_mouse_up (stype, stype, stype) |
| virtual stype | event_key_up (stype, stype, stype, stype) |
| virtual stype | event_key_up (stype, stype, stype, stype) |
| virtual stype | script_set_size (stype w, stype h) |
| virtual stype | script_set_size (stype w, stype h) |
| virtual stype | script_set_position (stype x, stype y) |
| virtual stype | script_set_position (stype x, stype y) |
| virtual bool | is_outside (stype x, stype y) |
| virtual bool | is_outside (stype x, stype y) |
| virtual stype | set_enabled (stype e) |
| virtual stype | set_enabled (stype e) |
Protected Attributes | |
| stype | off |
| stype | x |
| stype | y |
| stype | h |
| stype | w |
| sint4 | layout |
| ScriptObj * | layout_wrt |
| std::string | name |
| Vector< ObjAction * > | actions |
| std::map< std::string, ObjAction * > | act_map |
| bool | dead |
| State of this object, regardless of any parent's state. | |
| bool | enabled |
| sint4 | num_refs |
| std::set< Ptr * > | hard_refs |
| std::set< WPtr * > | soft_refs |
Private Attributes | |
| sint4 | wwidth |
| sint4 | wheight |
| bool | draw_tiles |
| bool | draw_air |
| const ST_Terrain * | terrain_p |
| const ST_ForceField * | forcefield_p |
| SimpleTerrainOverlay * | overlay |
Friends | |
| class | GameObjFactory |
| class | ScriptParser |
Definition at line 45 of file SimpleTerrainWidget.H.
enum CWidget::Layout [inherited] |
| FLOATER | |
| TOP | |
| BOTTOM | |
| LEFT | |
| RIGHT | |
| INSIDE | |
| OUTSIDE | |
| VERTICAL | |
| HORIZONTAL | |
| DIAGONAL | |
| FLOATER | |
| TOP | |
| BOTTOM | |
| LEFT | |
| RIGHT | |
| INSIDE | |
| OUTSIDE | |
| VERTICAL | |
| HORIZONTAL | |
| DIAGONAL |
Definition at line 22 of file gfxclient/src/CWidget.H.
enum CWidget::Layout [inherited] |
| FLOATER | |
| TOP | |
| BOTTOM | |
| LEFT | |
| RIGHT | |
| INSIDE | |
| OUTSIDE | |
| VERTICAL | |
| HORIZONTAL | |
| DIAGONAL | |
| FLOATER | |
| TOP | |
| BOTTOM | |
| LEFT | |
| RIGHT | |
| INSIDE | |
| OUTSIDE | |
| VERTICAL | |
| HORIZONTAL | |
| DIAGONAL |
Definition at line 22 of file ogfx/src/CWidget.H.
| SimpleTerrain::SimpleTerrainWidget::SimpleTerrainWidget | ( | const ST_Terrain & | terrain, |
| GfxModule * | gfxm = 0 |
||
| ) |
Definition at line 188 of file SimpleTerrainWidget.C.
References ClientModule::add_handler(), draw_air, draw_tiles, forcefield_p, overlay, CWidget::set_name(), terrain_p, wheight, and wwidth.
| SimpleTerrain::SimpleTerrainWidget::SimpleTerrainWidget | ( | const ST_ForceField & | terrain, |
| GfxModule * | gfxm = 0 |
||
| ) |
Definition at line 208 of file SimpleTerrainWidget.C.
References ClientModule::add_handler(), draw_air, draw_tiles, SimpleTerrain::SimpleTerrainOverlay::enable(), forcefield_p, overlay, CWidget::set_name(), terrain_p, wheight, and wwidth.
| SimpleTerrain::SimpleTerrainWidget::~SimpleTerrainWidget | ( | ) |
Definition at line 230 of file SimpleTerrainWidget.C.
References overlay.
| ObjAction * CWidget::action | ( | const std::string & | name | ) | const [virtual, inherited] |
Reimplemented from ScriptObj.
Definition at line 108 of file gfxclient/src/CWidget.C.
References FIND.
| virtual ObjAction* CWidget::action | ( | const std::string & | ) | const [virtual, inherited] |
Reimplemented from ScriptObj.
Reimplemented in GameObj, and ScriptString.
Definition at line 127 of file ScriptObj.H.
Reimplemented in GameObj.
Definition at line 136 of file ScriptObj.H.
Referenced by SimpleActions::add().
| virtual bool ScriptObj::action_enabled | ( | sint4 | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 129 of file ScriptObj.H.
Referenced by SimpleActions::add().
| virtual bool ScriptObj::action_enabled | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 130 of file ScriptObj.H.
| virtual bool ScriptObj::action_hidden | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 132 of file ScriptObj.H.
| virtual bool ScriptObj::action_hidden | ( | sint4 | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 131 of file ScriptObj.H.
Referenced by SimpleActions::add().
| virtual sint4 ScriptObj::action_id | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 128 of file ScriptObj.H.
Referenced by Game::script_eval().
| virtual void ScriptObj::action_names | ( | Vector< std::string > & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 108 of file ScriptObj.H.
| void ScriptObj::add_ref | ( | ) | [inline, inherited] |
Definition at line 67 of file ScriptObj.H.
References ScriptObj::num_refs.
Referenced by PlayerInfo::new_id(), GfxModule::process_changes(), ScriptObj::Ptr::Ptr(), and Game::read_blueprint_gs().
| virtual bool ScriptObj::apply_comp_diff | ( | bool | , |
| ByteStream & | s, | ||
| bool | , | ||
| PlayerInfo * | pi | ||
| ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 102 of file ScriptObj.H.
References ScriptObj::apply_diff().
Referenced by GameObj::apply_comp_diff().
| virtual bool ScriptObj::apply_diff | ( | ByteStream & | , |
| PlayerInfo * | |||
| ) | [inline, virtual, inherited] |
Reimplemented in GameObj, ScriptSet, ScriptString, and ScriptVector.
Definition at line 101 of file ScriptObj.H.
Referenced by ScriptObj::apply_comp_diff(), and ScriptObj::load().
| virtual bool ScriptObj::attr_changed | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 82 of file ScriptObj.H.
| virtual void ScriptObj::attr_names | ( | Vector< std::string > & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 80 of file ScriptObj.H.
| std::string CWidget::bp_name | ( | ) | const [inline, virtual, inherited] |
Reimplemented from ScriptObj.
Definition at line 41 of file gfxclient/src/CWidget.H.
| std::string CWidget::bp_name | ( | ) | const [inline, virtual, inherited] |
Reimplemented from ScriptObj.
Definition at line 41 of file ogfx/src/CWidget.H.
| void ScriptObj::check_ptr | ( | ScriptObj * | ptr | ) | [static, inherited] |
Definition at line 350 of file ScriptObj.C.
References ERR, foo, and ScriptObj::ptr_list.
Referenced by ArrayNode::addr(), QueueAction::eval(), ArrayNode::eval(), GOB_AddrNode::eval(), GOB_AttrNode::eval(), GOB_Component::eval(), SharedObj::eval(), GlobalObj::eval(), ForAllIntersect::ForAllIntersect(), ForAllObj::ForAllObj(), ForAllType::ForAllType(), Game::handle_component(), Game::move_objects(), ScriptObj::WPtr::operator=(), ScriptObj::Ptr::operator=(), SimpleTerrain::ST_ForceField::plan_pending_task(), GfxModule::update_id_list(), Game::update_pos(), and ScriptObj::Ptr::~Ptr().
| virtual void ScriptObj::clear_action | ( | ) | [inline, virtual, inherited] |
| virtual uint4 ScriptObj::code | ( | ) | const [inline, virtual, inherited] |
| void ScriptObj::collect_dead | ( | std::set< ScriptObj * > & | dead | ) | [static, inherited] |
Call script destructors for dead objects.
Delete them if they're not being referenced. NOTE: it's possible for new objects to be added to dead_objs when the destructors are called.
Definition at line 313 of file ScriptObj.C.
References ScriptObj::dead_objs, ScriptObj::destroyed_objs, ScriptObj::destruct(), FORU_DYN, and ScriptObj::get_refs().
Referenced by Game::garbage_collect_objects().
| void ScriptObj::collect_destroyed | ( | ) | [static, inherited] |
Delete dead objects that aren't being referenced.
Definition at line 335 of file ScriptObj.C.
References ScriptObj::destroyed_objs.
Referenced by Game::garbage_collect_objects().
| virtual ScriptObj* ScriptObj::component | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 135 of file ScriptObj.H.
Referenced by PursueAttack::act(), GOB_AttrNode::eval(), GOB_Component::eval(), GfxModule::GUI_start_overlay(), GfxModule::load(), ShooterAI::recompute_targets(), and Game::script_GOB_Get_Comp().
| virtual void ScriptObj::component_names | ( | Vector< std::string > & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 134 of file ScriptObj.H.
| virtual void ScriptObj::construct | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 138 of file ScriptObj.H.
Referenced by GameObjFactory::create().
| virtual void ScriptObj::copy_to_prev | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj, ScriptSet, ScriptString, and ScriptVector.
Definition at line 105 of file ScriptObj.H.
| void ScriptObj::del_ref | ( | ) | [inline, inherited] |
Definition at line 68 of file ScriptObj.H.
References ScriptObj::num_refs, and SCRIPT_ASSERT.
Referenced by GfxModule::check_static_objects(), and PlayerInfo::delete_obj().
| virtual void ScriptObj::destruct | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj, ScriptEmitter, ScriptModel, ScriptEmitter, and ScriptModel.
Definition at line 139 of file ScriptObj.H.
Referenced by ScriptObj::collect_dead(), and GfxModule::~GfxModule().
| virtual void ScriptObj::disable | ( | ) | [inline, virtual, inherited] |
| stype SimpleTerrain::SimpleTerrainWidget::draw | ( | ) | [virtual] |
Reimplemented from CWidget.
Definition at line 304 of file SimpleTerrainWidget.C.
References draw_air, CGridBase::draw_grid(), FORALL, forcefield_p, FORS, Object::get_center(), CWidget::h, SimpleTerrain::UnitPath::obj, CWidget::off, SimpleTerrain::UnitPath::path, SimpleTerrain::ST_Terrain::pfEngine, SimpleTerrain::ST_ForceField::pfEngine, TerrainBasicImp< TaskWrapper >::tasks, terrain_p, stype::to_int(), CWidget::w, wheight, wwidth, CWidget::x, and CWidget::y.
Definition at line 23 of file gfxclient/src/CGridBase.C.
References FORT.
Referenced by SquadCombatAIWidget::draw(), and draw().
| virtual void ScriptObj::enable | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 70 of file ScriptObj.H.
References ScriptObj::enabled.
Referenced by ScriptEmitter::ScriptEmitter().
| stype SimpleTerrain::SimpleTerrainWidget::event_key_down | ( | stype | key, |
| stype | mod, | ||
| stype | x, | ||
| stype | y | ||
| ) | [virtual] |
Reimplemented from CWidget.
Definition at line 237 of file SimpleTerrainWidget.C.
References SimpleTerrain::SimpleTerrainOverlay::disable(), draw_air, draw_tiles, SimpleTerrain::SimpleTerrainOverlay::enable(), forcefield_p, FORS, SimpleTerrain::SimpleTerrainOverlay::is_enabled(), CWidget::is_outside(), overlay, SimpleTerrain::ST_Terrain::pfEngine, SimpleTerrain::ST_ForceField::pfEngine, terrain_p, stype::to_int(), CWidget::x, and CWidget::y.
| virtual stype CWidget::event_key_up | ( | stype | , |
| stype | , | ||
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 84 of file gfxclient/src/CWidget.H.
| virtual stype CWidget::event_key_up | ( | stype | , |
| stype | , | ||
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 84 of file ogfx/src/CWidget.H.
| virtual stype CWidget::event_mouse_down | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, ShooterAIWidget, ProfileWidget, VCRWidget, ProfileWidget, VCRWidget, and HeuristicMapWidget.
Definition at line 81 of file ogfx/src/CWidget.H.
| virtual stype CWidget::event_mouse_down | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, ShooterAIWidget, ProfileWidget, VCRWidget, ProfileWidget, VCRWidget, and HeuristicMapWidget.
Definition at line 81 of file gfxclient/src/CWidget.H.
| virtual stype CWidget::event_mouse_hover | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 80 of file ogfx/src/CWidget.H.
| virtual stype CWidget::event_mouse_hover | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 80 of file gfxclient/src/CWidget.H.
| virtual stype CWidget::event_mouse_motion | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 79 of file gfxclient/src/CWidget.H.
| virtual stype CWidget::event_mouse_motion | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 79 of file ogfx/src/CWidget.H.
| virtual stype CWidget::event_mouse_up | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 82 of file ogfx/src/CWidget.H.
| virtual stype CWidget::event_mouse_up | ( | stype | , |
| stype | , | ||
| stype | |||
| ) | [inline, protected, virtual, inherited] |
Reimplemented in HeuristicMapWidget, and HeuristicMapWidget.
Definition at line 82 of file gfxclient/src/CWidget.H.
| virtual void ScriptObj::gen_comp_diff | ( | bool | first, |
| bool | allied, | ||
| std::string & | s, | ||
| PlayerInfo * | pi | ||
| ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 99 of file ScriptObj.H.
References ScriptObj::gen_diff().
Referenced by GameObj::gen_comp_diff().
| virtual void ScriptObj::gen_diff | ( | bool | , |
| bool | , | ||
| std::string & | , | ||
| PlayerInfo * | |||
| ) | const [inline, virtual, inherited] |
Reimplemented in GameObj, ScriptSet, ScriptString, and ScriptVector.
Definition at line 98 of file ScriptObj.H.
Referenced by ScriptObj::gen_comp_diff(), and ScriptObj::save().
| virtual GameObj* ScriptObj::get_GameObj | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 140 of file ScriptObj.H.
Referenced by SimpleActions::add(), Game::add_tile_boundary(), Game::apply_view_diff(), TRTerrain::TR_Object::CalculateInfluence(), GameObjFactory::create(), GfxModule::draw_minimap(), Game::exec_actions(), Game::load(), GameObj::notify_attack(), Game::read_blueprint_gs(), Game::script_eval(), ScriptObjSet::select_add(), and GameObj::set_action().
Intended for use in saving/loading the game state in combination with set_ids.
Definition at line 262 of file ScriptObj.C.
References FORALL, and ScriptObj::id2obj_map.
| sint4 ScriptObj::get_int | ( | const std::string & | a | ) | const [virtual, inherited] |
Definition at line 392 of file ScriptObj.C.
References ERR2, ScriptObj::get_val_ptr(), and stype::to_int().
Referenced by GatherAI::act(), SimpleActions::add(), TRTerrain::TR_Terrain::AddObstacle(), TR_PFEngine::AddObstacle(), Simul::Player::addOrtsBase(), AI_Client::chase_unit(), Game::collision_time_circle_rect(), Game::collision_time_line_rect(), Game::collision_time_rect_rect(), CompiledAction1(), BSimul::DEFINE_BTASK(), GUI::display(), GUI::display_health_bars(), GfxGameObject::draw_damage(), ScoutCommander::exec(), Game::exec_actions(), TRTerrain::TR_Terrain::find_path(), TR_PFEngine::find_path(), Environment::find_path(), AI_Client::gen_ai_client_actions(), Game::gen_client_actions(), get_hp(), get_obj_type(), get_position(), Worker::getCurrentMinerals(), MyEventHandler::handle_event(), BSimul::BuildTasksAI::handle_event(), has_flag(), Environment::ir_object(), is_moving(), Simul::SimulationAI::isControllable(), BSimul::BuildTasksAI::isControllable(), TRTerrain::TR_Obstacle::IsObstacle(), TR_Obstacle::IsObstacle(), Game::load(), ScriptModel::load_model(), AI_Client::move_randomly(), PathProcessor::process_paths(), MapEvalHandler::processChangedObject(), MapEvalHandler::processDeadObject(), MapEvalHandler::processNewObject(), MapEvalHandler::processVanishedObject(), Game::resolve_collision_circle_rect(), and GameObj::update_points().
| sint4 ScriptObj::get_int_prev | ( | const std::string & | a | ) | const [virtual, inherited] |
Definition at line 400 of file ScriptObj.C.
References ScriptObj::get_val_prev(), and stype::to_int().
Referenced by GfxGameObject::game_tick(), GameObj::get_moving(), GameObj::get_speed(), GameObj::get_zcat(), MapEvalHandler::processChangedObject(), and MapEvalHandler::processDeadObject().
| sintptr * CWidget::get_int_ptr | ( | const std::string & | a | ) | [virtual, inherited] |
Reimplemented from ScriptObj.
Definition at line 143 of file gfxclient/src/CWidget.C.
| const sintptr * CWidget::get_int_ptr | ( | const std::string & | a | ) | const [virtual, inherited] |
Reimplemented from ScriptObj.
Definition at line 151 of file gfxclient/src/CWidget.C.
| virtual const sintptr* CWidget::get_int_ptr | ( | const std::string & | ) | const [virtual, inherited] |
Reimplemented from ScriptObj.
| virtual sintptr* CWidget::get_int_ptr | ( | const std::string & | ) | [virtual, inherited] |
Reimplemented from ScriptObj.
| sint4 CWidget::get_layout | ( | ) | const [inline, inherited] |
Definition at line 56 of file gfxclient/src/CWidget.H.
References CWidget::layout.
Referenced by GfxModule::add_cwidget().
| sint4 CWidget::get_layout | ( | ) | const [inline, inherited] |
Definition at line 56 of file ogfx/src/CWidget.H.
References CWidget::layout.
| ScriptObj* CWidget::get_layout_wrt | ( | ) | const [inline, inherited] |
Definition at line 57 of file gfxclient/src/CWidget.H.
References CWidget::layout_wrt.
| ScriptObj* CWidget::get_layout_wrt | ( | ) | const [inline, inherited] |
Definition at line 57 of file ogfx/src/CWidget.H.
References CWidget::layout_wrt.
| const char* CWidget::get_name | ( | ) | const [inline, inherited] |
Definition at line 42 of file ogfx/src/CWidget.H.
References CWidget::name.
| const char* CWidget::get_name | ( | ) | const [inline, inherited] |
Definition at line 42 of file gfxclient/src/CWidget.H.
References CWidget::name.
Referenced by GfxModule::add_cwidget().
Definition at line 291 of file ScriptObj.C.
References FIND, and ScriptObj::obj2id_map.
Referenced by SimpleTerrain::ST_ForceField::plan_pending_task().
| virtual sint4 ScriptObj::get_refs | ( | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 69 of file ScriptObj.H.
References ScriptObj::num_refs.
Referenced by ScriptObj::collect_dead().
| stype ScriptObj::get_val | ( | const std::string & | a | ) | const [virtual, inherited] |
Definition at line 369 of file ScriptObj.C.
References ScriptObj::bp_name(), ERR2, and ScriptObj::get_val_ptr().
Referenced by GfxModule::GUI_start_overlay().
| virtual stype ScriptObj::get_val_prev | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 86 of file ScriptObj.H.
Referenced by ScriptObj::get_int_prev().
| virtual const stype* ScriptObj::get_val_ptr | ( | const std::string & | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 88 of file ScriptObj.H.
| virtual stype* ScriptObj::get_val_ptr | ( | const std::string & | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 87 of file ScriptObj.H.
Referenced by GOB_AttrNode::addr(), GOB_AttrNode::eval(), ScriptObj::get_int(), ScriptObj::get_int_ptr(), PursueAttack::get_range(), ScriptObj::get_val(), ScriptObj::has_attr(), ScriptObj::set_val(), SquadCombatAI::unitAttack(), and SquadCombatAI::unitImportance().
| bool ScriptObj::has_attr | ( | const std::string & | a | ) | const [virtual, inherited] |
Definition at line 363 of file ScriptObj.C.
References ScriptObj::get_val_ptr().
Referenced by Game::compute_view(), GUI::display(), GUI::display_health_bars(), Game::gen_client_actions(), PathFinder::handle_event(), MyEventHandler::handle_event(), Simul::SimulationAI::isControllable(), BSimul::BuildTasksAI::isControllable(), TRTerrain::TR_Obstacle::IsObstacle(), TR_Obstacle::IsObstacle(), TerrainModule::notify_timp_on_world_changes(), MapEvalHandler::processChangedObject(), MapEvalHandler::processDeadObject(), MapEvalHandler::processNewObject(), MapEvalHandler::processVanishedObject(), and Game::read_blueprint_gs().
| bool ScriptObj::is_dead | ( | ) | const [inline, inherited] |
Definition at line 75 of file ScriptObj.H.
References ScriptObj::dead.
Referenced by TR_EventHandler::compute_actions(), SampleEventHandler::compute_actions(), Game::gen_action_message(), Game::gen_actions(), Game::gen_view_diffs(), Game::move_objects(), and Game::update_sectors().
| virtual bool ScriptObj::is_enabled | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 72 of file ScriptObj.H.
References ScriptObj::enabled.
Referenced by Game::exec_actions().
Definition at line 175 of file gfxclient/src/CWidget.C.
References stype::to_int().
Referenced by CWidget::CWidget(), SquadCombatAIWidget::event_key_down(), event_key_down(), and SimplePathfinderWidget::event_key_down().
| bool CWidget::is_turned_on | ( | ) | [inline, inherited] |
Definition at line 47 of file gfxclient/src/CWidget.H.
References CWidget::off.
Referenced by MyEventHandler::draw().
| bool CWidget::is_turned_on | ( | ) | [inline, inherited] |
Definition at line 47 of file ogfx/src/CWidget.H.
References CWidget::off.
| void ScriptObj::kill | ( | ) | [inherited] |
Definition at line 300 of file ScriptObj.C.
References ScriptObj::dead, and ScriptObj::dead_objs.
Referenced by GfxModule::check_static_objects(), GfxModule::process_changes(), Game::script_GOB_Create(), and Game::script_GOB_CreateId().
| void ScriptObj::load | ( | std::istream & | is | ) | [virtual, inherited] |
Implements SaveLoadAbs.
Definition at line 249 of file ScriptObj.C.
References ScriptObj::apply_diff(), and ERR.
Referenced by Game::load().
| virtual void ScriptObj::reset_frame_data | ( | ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 106 of file ScriptObj.H.
| void ScriptObj::save | ( | std::ostream & | os | ) | const [virtual, inherited] |
Implements SaveLoadAbs.
Definition at line 239 of file ScriptObj.C.
References ERR, and ScriptObj::gen_diff().
Referenced by Game::save().
Definition at line 118 of file gfxclient/src/CWidget.C.
References stype::to_int().
Definition at line 126 of file gfxclient/src/CWidget.C.
References stype::to_int().
| virtual uint4 ScriptObj::set_action | ( | const std::string & | , |
| const Vector< sint4 > & | , | ||
| sint4 | = 1 |
||
| ) | [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 110 of file ScriptObj.H.
References ERR.
Referenced by ShooterAI::act(), PursueAttack::act(), TR_EventHandler::compute_actions(), SampleEventHandler::compute_actions(), SquadCombatAI::compute_attack(), Game::gen_client_actions(), and Worker::mine().
Definition at line 134 of file gfxclient/src/CWidget.C.
References stype::to_int().
| void ScriptObj::set_ids | ( | const Vector< ScriptObj * > & | objs, |
| const Vector< ObjId > & | ids | ||
| ) | [static, inherited] |
Intended for use in saving/loading the game state in combination with get_ids.
Definition at line 277 of file ScriptObj.C.
References ERR, FORU, ScriptObj::id2obj_map, ScriptObj::idf, ScriptObj::obj2id_map, and IdFactory::reserve().
Referenced by Game::load().
| void ScriptObj::set_int | ( | const std::string & | name, |
| sint4 | val, | ||
| bool | warn = true |
||
| ) | [virtual, inherited] |
Definition at line 426 of file ScriptObj.C.
References ERR2, and ScriptObj::get_int_ptr().
Referenced by Game::apply_view_diff(), CompiledAction1(), Game::Game(), Game::obj_move_to(), Game::read_blueprint_gs(), Game::read_object_block(), Game::script_GOB_Create(), Game::script_GOB_CreateId(), ScriptObjSet::select_add(), and GfxModule::update_selected().
Definition at line 51 of file ogfx/src/CWidget.H.
References CWidget::layout, and CWidget::layout_wrt.
Definition at line 51 of file gfxclient/src/CWidget.H.
References CWidget::layout, and CWidget::layout_wrt.
| void CWidget::set_layout | ( | sint4 | layout | ) | [inline, inherited] |
Definition at line 49 of file gfxclient/src/CWidget.H.
References CWidget::layout.
| void CWidget::set_layout | ( | sint4 | layout | ) | [inline, inherited] |
Definition at line 49 of file ogfx/src/CWidget.H.
References CWidget::layout.
| void CWidget::set_name | ( | const std::string & | s | ) | [inline, inherited] |
Definition at line 38 of file gfxclient/src/CWidget.H.
References CWidget::name.
Referenced by SimplePathfinderWidget::SimplePathfinderWidget(), SimpleTerrainWidget(), and SquadCombatAIWidget::SquadCombatAIWidget().
| void CWidget::set_name | ( | char * | s | ) | [inline, inherited] |
Definition at line 39 of file ogfx/src/CWidget.H.
References CWidget::name.
| void CWidget::set_name | ( | const std::string & | s | ) | [inline, inherited] |
Definition at line 38 of file ogfx/src/CWidget.H.
References CWidget::name.
| void CWidget::set_name | ( | const char * | s | ) | [inline, inherited] |
Definition at line 39 of file gfxclient/src/CWidget.H.
References CWidget::name.
Definition at line 161 of file gfxclient/src/CWidget.C.
Referenced by CWidget::CWidget(), and MapEvalHandler::handle_event().
Definition at line 167 of file gfxclient/src/CWidget.C.
Referenced by CWidget::CWidget(), and MapEvalHandler::handle_event().
| void ScriptObj::set_val | ( | const std::string & | name, |
| stype | val, | ||
| bool | warn = true |
||
| ) | [virtual, inherited] |
Reimplemented in GameObj.
Definition at line 381 of file ScriptObj.C.
References ERR2, and ScriptObj::get_val_ptr().
| void CWidget::turn_off | ( | ) | [inline, inherited] |
Definition at line 44 of file gfxclient/src/CWidget.H.
References CWidget::off.
| void CWidget::turn_off | ( | ) | [inline, inherited] |
Definition at line 44 of file ogfx/src/CWidget.H.
References CWidget::off.
| void CWidget::turn_on | ( | ) | [inline, inherited] |
Definition at line 45 of file gfxclient/src/CWidget.H.
References CWidget::off.
Referenced by MapEvalHandler::handle_event(), and MyEventHandler::MyEventHandler().
| void CWidget::turn_on | ( | ) | [inline, inherited] |
Definition at line 45 of file ogfx/src/CWidget.H.
References CWidget::off.
| ObjId ScriptObj::uid | ( | ) | const [inline, inherited] |
Definition at line 145 of file ScriptObj.H.
References ScriptObj::id.
Referenced by Game::handle_component(), Edge2::operator<(), and Edge::operator<().
| virtual std::string ScriptObj::write_action | ( | ObjId | ) | const [inline, virtual, inherited] |
Reimplemented in GameObj.
Definition at line 124 of file ScriptObj.H.
friend class GameObjFactory [friend, inherited] |
Reimplemented in GameObj.
Definition at line 142 of file ScriptObj.H.
friend class ScriptParser [friend, inherited] |
Reimplemented in GameObj.
Definition at line 143 of file ScriptObj.H.
std::map< std::string, ObjAction * > CWidget::act_map [protected, inherited] |
Definition at line 77 of file gfxclient/src/CWidget.H.
Vector< ObjAction * > CWidget::actions [protected, inherited] |
Definition at line 76 of file gfxclient/src/CWidget.H.
PlayerInfo* ScriptObj::creator [inherited] |
Definition at line 50 of file ScriptObj.H.
Referenced by GameObjFactory::create(), and GameObj::set_action().
bool ScriptObj::dead [protected, inherited] |
State of this object, regardless of any parent's state.
Definition at line 149 of file ScriptObj.H.
Referenced by ScriptObj::is_dead(), ScriptObj::kill(), and ScriptObj::ScriptObj().
bool SimpleTerrain::SimpleTerrainWidget::draw_air [private] |
Definition at line 53 of file SimpleTerrainWidget.H.
Referenced by draw(), event_key_down(), and SimpleTerrainWidget().
bool SimpleTerrain::SimpleTerrainWidget::draw_tiles [private] |
Definition at line 52 of file SimpleTerrainWidget.H.
Referenced by event_key_down(), and SimpleTerrainWidget().
bool ScriptObj::enabled [protected, inherited] |
Definition at line 150 of file ScriptObj.H.
Referenced by ScriptObj::disable(), GameObj::disable(), ScriptObj::enable(), GameObj::enable(), GameObj::GameObj(), ScriptObj::is_enabled(), and ScriptObj::ScriptObj().
const ST_ForceField* SimpleTerrain::SimpleTerrainWidget::forcefield_p [private] |
Definition at line 56 of file SimpleTerrainWidget.H.
Referenced by draw(), event_key_down(), and SimpleTerrainWidget().
stype CWidget::h [protected, inherited] |
Definition at line 68 of file gfxclient/src/CWidget.H.
Referenced by TextWidget::draw(), SquadCombatAIWidget::draw(), draw(), SimplePathfinderWidget::draw(), and HeuristicMapWidget::draw().
std::set<Ptr*> ScriptObj::hard_refs [protected, inherited] |
Definition at line 153 of file ScriptObj.H.
Referenced by ScriptObj::Ptr::Ptr(), and ScriptObj::~ScriptObj().
sint4 CWidget::layout [protected, inherited] |
Definition at line 71 of file gfxclient/src/CWidget.H.
Referenced by CWidget::get_layout(), and CWidget::set_layout().
ScriptObj * CWidget::layout_wrt [protected, inherited] |
Definition at line 72 of file gfxclient/src/CWidget.H.
Referenced by CWidget::get_layout_wrt(), and CWidget::set_layout().
std::string CWidget::name [protected, inherited] |
Definition at line 74 of file gfxclient/src/CWidget.H.
Referenced by CWidget::get_name(), and CWidget::set_name().
sint4 ScriptObj::num_refs [protected, inherited] |
Definition at line 152 of file ScriptObj.H.
Referenced by ScriptObj::add_ref(), ScriptObj::del_ref(), ScriptObj::get_refs(), GameObj::get_refs(), and ScriptObj::ScriptObj().
stype CWidget::off [protected, inherited] |
Definition at line 65 of file gfxclient/src/CWidget.H.
Referenced by SquadCombatAIWidget::draw(), draw(), SimplePathfinderWidget::draw(), CWidget::is_turned_on(), CWidget::turn_off(), and CWidget::turn_on().
Definition at line 57 of file SimpleTerrainWidget.H.
Referenced by event_key_down(), SimpleTerrainWidget(), and ~SimpleTerrainWidget().
ScriptObj* ScriptObj::parent [inherited] |
The object that this is a node of (can be self referential).
Definition at line 47 of file ScriptObj.H.
Referenced by GOB_AttrNode::eval(), GOB_Component::eval(), GameObj::GameObj(), GameObj::notify_attack(), ScriptObj::ScriptObj(), and GameObj::set_action().
set< ScriptObj * > ScriptObj::ptr_list [static, inherited] |
Definition at line 61 of file ScriptObj.H.
Referenced by ScriptObj::check_ptr(), ScriptObj::ScriptObj(), and ScriptObj::~ScriptObj().
std::set<WPtr*> ScriptObj::soft_refs [protected, inherited] |
Definition at line 154 of file ScriptObj.H.
Referenced by ScriptObj::WPtr::WPtr(), and ScriptObj::~ScriptObj().
const ST_Terrain* SimpleTerrain::SimpleTerrainWidget::terrain_p [private] |
Definition at line 55 of file SimpleTerrainWidget.H.
Referenced by draw(), event_key_down(), and SimpleTerrainWidget().
stype CWidget::w [protected, inherited] |
Definition at line 69 of file gfxclient/src/CWidget.H.
Referenced by TextWidget::draw(), SquadCombatAIWidget::draw(), draw(), SimplePathfinderWidget::draw(), and HeuristicMapWidget::draw().
Definition at line 50 of file SimpleTerrainWidget.H.
Referenced by draw(), and SimpleTerrainWidget().
Definition at line 49 of file SimpleTerrainWidget.H.
Referenced by draw(), and SimpleTerrainWidget().
stype CWidget::x [protected, inherited] |
Definition at line 66 of file gfxclient/src/CWidget.H.
Referenced by TextWidget::draw(), SquadCombatAIWidget::draw(), draw(), SimplePathfinderWidget::draw(), HeuristicMapWidget::draw(), and event_key_down().
stype CWidget::y [protected, inherited] |
Definition at line 67 of file gfxclient/src/CWidget.H.
Referenced by TextWidget::draw(), SquadCombatAIWidget::draw(), draw(), SimplePathfinderWidget::draw(), HeuristicMapWidget::draw(), and event_key_down().