ORTS

SimpleTerrain::SimpleTerrainWidget Class Reference

#include <SimpleTerrainWidget.H>

Inheritance diagram for SimpleTerrain::SimpleTerrainWidget:
CGridBase CWidget CWidget ScriptObj ScriptObj ScriptObj ScriptObj SaveLoadAbs SaveLoadAbs SaveLoadAbs SaveLoadAbs

List of all members.

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
ScriptObjget_layout_wrt () const
ScriptObjget_layout_wrt () const
virtual ObjActionaction (const std::string &) const
virtual ObjActionaction (const std::string &) const
virtual ObjActionaction (sint4) const
virtual sintptrget_int_ptr (const std::string &)
virtual const sintptrget_int_ptr (const std::string &) const
virtual sintptrget_int_ptr (const std::string &)
virtual const sintptrget_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 stypeget_val_ptr (const std::string &)
virtual const stypeget_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 ScriptObjcomponent (const std::string &) const
virtual ScriptObjaction_component (sint4) const
virtual void construct ()
virtual void destruct ()
virtual GameObjget_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

ScriptObjparent
 The object that this is a node of (can be self referential).
PlayerInfocreator

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
ScriptObjlayout_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_Terrainterrain_p
const ST_ForceFieldforcefield_p
SimpleTerrainOverlayoverlay

Friends

class GameObjFactory
class ScriptParser

Detailed Description

Definition at line 45 of file SimpleTerrainWidget.H.


Member Enumeration Documentation

enum CWidget::Layout [inherited]
Enumerator:
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]
Enumerator:
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.


Constructor & Destructor Documentation

SimpleTerrain::SimpleTerrainWidget::SimpleTerrainWidget ( const ST_Terrain terrain,
GfxModule gfxm = 0 
)
SimpleTerrain::SimpleTerrainWidget::SimpleTerrainWidget ( const ST_ForceField terrain,
GfxModule gfxm = 0 
)
SimpleTerrain::SimpleTerrainWidget::~SimpleTerrainWidget ( )

Definition at line 230 of file SimpleTerrainWidget.C.

References overlay.


Member Function Documentation

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.

virtual ObjAction* ScriptObj::action ( sint4  ) const [inline, virtual, inherited]

Reimplemented in GameObj, and ScriptString.

Definition at line 127 of file ScriptObj.H.

virtual ScriptObj* ScriptObj::action_component ( sint4  ) const [inline, virtual, inherited]

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]
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.

virtual void ScriptObj::clear_action ( ) [inline, virtual, inherited]

Reimplemented in GameObj.

Definition at line 120 of file ScriptObj.H.

References ERR.

virtual uint4 ScriptObj::code ( ) const [inline, virtual, inherited]

Reimplemented in GameObj.

Definition at line 78 of file ScriptObj.H.

Referenced by Game::save().

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]
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]

Reimplemented in GameObj.

Definition at line 71 of file ScriptObj.H.

References ScriptObj::enabled.

void CGridBase::draw_grid ( sint4  tx,
sint4  ty 
) [protected, inherited]
void CGridBase::draw_grid ( sint4  tx,
sint4  ty 
) [protected, inherited]

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().

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]
virtual stype CWidget::event_mouse_down ( stype  ,
stype  ,
stype   
) [inline, protected, virtual, inherited]
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().

void ScriptObj::get_ids ( Vector< ScriptObj * > &  objs,
Vector< ObjId > &  ids 
) [static, inherited]

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_prev ( const std::string &  a) const [virtual, inherited]
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().

ObjId ScriptObj::get_obj_id ( ScriptObj s) [static, inherited]

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]
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().

bool CWidget::is_outside ( stype  x,
stype  y 
) [protected, virtual, inherited]
virtual bool CWidget::is_outside ( stype  x,
stype  y 
) [protected, virtual, inherited]
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]
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().

stype CWidget::script_set_position ( stype  x,
stype  y 
) [protected, virtual, inherited]

Definition at line 118 of file gfxclient/src/CWidget.C.

References stype::to_int().

virtual stype CWidget::script_set_position ( stype  x,
stype  y 
) [protected, virtual, inherited]
stype CWidget::script_set_size ( stype  w,
stype  h 
) [protected, virtual, inherited]

Definition at line 126 of file gfxclient/src/CWidget.C.

References stype::to_int().

virtual stype CWidget::script_set_size ( stype  w,
stype  h 
) [protected, virtual, inherited]
virtual uint4 ScriptObj::set_action ( sint4  ,
const Vector< sint4 > &  ,
sint4  = 1 
) [inline, virtual, inherited]

Reimplemented in GameObj.

Definition at line 115 of file ScriptObj.H.

References ERR.

virtual uint4 ScriptObj::set_action ( const std::string &  ,
const Vector< sint4 > &  ,
sint4  = 1 
) [inline, virtual, inherited]
virtual stype CWidget::set_enabled ( stype  e) [protected, virtual, inherited]
stype CWidget::set_enabled ( stype  e) [protected, virtual, inherited]

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]
void CWidget::set_layout ( sint4  layout,
ScriptObj wrt 
) [inline, inherited]

Definition at line 51 of file ogfx/src/CWidget.H.

References CWidget::layout, and CWidget::layout_wrt.

void CWidget::set_layout ( sint4  layout,
ScriptObj wrt 
) [inline, inherited]

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]
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.

void CWidget::set_position ( sint4  x,
sint4  y 
) [inherited]
void CWidget::set_position ( sint4  x,
sint4  y 
) [inherited]

Definition at line 161 of file gfxclient/src/CWidget.C.

Referenced by CWidget::CWidget(), and MapEvalHandler::handle_event().

void CWidget::set_size ( sint4  w,
sint4  h 
) [inherited]
void CWidget::set_size ( sint4  w,
sint4  h 
) [inherited]

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.


Friends And Related Function Documentation

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.


Member Data Documentation

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.

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().

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().

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().

Definition at line 49 of file SimpleTerrainWidget.H.

Referenced by draw(), and SimpleTerrainWidget().


The documentation for this class was generated from the following files:


Generated on Fri May 18 2012 03:03:13 for ORTS by Doxygen1.7.3