Selection Class Reference
[Engine Module]

#include <selection.h>

Inheritance diagram for Selection:

PlayerRemoteClient RemoteClient Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root >

List of all members.

Public Member Functions

 Selection (const char *id)
void SelectUnit (Unit *unit)
void AddUnit (Unit *unit)
void RemoveUnit (Unit *unit)
void AddRemoveUnit (Unit *unit)
void UnselectAll ()
void Update ()
void SetSelectedAction (Unit::Action action)
Unit::Action GetSelectedAction () const
Unit::Action GetAction () const
Unit::Aggressivity GetAggressivity () const
void Say (bool possitive, const char *message) const
bool IsMy () const
bool CanMove () const
bool CanAttack () const
bool CanMine () const
bool CanRepair () const
bool CanBuild () const
bool CanHide () const
void StartMoving (Unit *unit)
void StartMoving (const MapPosition3D &dest_position)
void StartHiding (Unit *unit)
void StartEjecting ()
void SetMeetingPoint (const MapPosition3D &meeting_point)
bool CanHideToUnit (const Unit *unit) const

Protected Types

typedef list< Unit * > UnitsList

Protected Attributes

UnitsList units
Unit::Action selected_action
Unit::Type units_type
Unit::Action action
Unit::Aggressivity aggressivity
Prototypebuilder
struct {
   bool   is_my: 1
   bool   can_move: 1
   bool   can_attack: 1
   bool   can_mine: 1
   bool   can_repair: 1
   bool   can_build: 1
   bool   can_hide: 1
}; 


Member Typedef Documentation

typedef list<Unit *> Selection::UnitsList [protected]


Constructor & Destructor Documentation

Selection::Selection ( const char *  id  ) 


Member Function Documentation

void Selection::SelectUnit ( Unit unit  )  [inline]

void Selection::AddUnit ( Unit unit  ) 

void Selection::RemoveUnit ( Unit unit  ) 

void Selection::AddRemoveUnit ( Unit unit  ) 

void Selection::UnselectAll (  ) 

void Selection::Update (  ) 

void Selection::SetSelectedAction ( Unit::Action  action  )  [inline]

Unit::Action Selection::GetSelectedAction (  )  const [inline]

Unit::Action Selection::GetAction (  )  const [inline]

Unit::Aggressivity Selection::GetAggressivity (  )  const [inline]

void Selection::Say ( bool  possitive,
const char *  message 
) const [inline]

bool Selection::IsMy (  )  const [inline]

bool Selection::CanMove (  )  const [inline]

bool Selection::CanAttack (  )  const [inline]

bool Selection::CanMine (  )  const [inline]

bool Selection::CanRepair (  )  const [inline]

bool Selection::CanBuild (  )  const [inline]

bool Selection::CanHide (  )  const [inline]

void Selection::StartMoving ( Unit unit  ) 

void Selection::StartMoving ( const MapPosition3D dest_position  ) 

void Selection::StartHiding ( Unit unit  ) 

void Selection::StartEjecting (  ) 

void Selection::SetMeetingPoint ( const MapPosition3D meeting_point  ) 

bool Selection::CanHideToUnit ( const Unit unit  )  const

Check if at least one unit can hide into the given unit.


Member Data Documentation

UnitsList Selection::units [protected]

Unit::Action Selection::selected_action [protected]

Unit::Type Selection::units_type [protected]

Unit::Action Selection::action [protected]

Unit::Aggressivity Selection::aggressivity [protected]

Prototype* Selection::builder [protected]

bool Selection::is_my

bool Selection::can_move

bool Selection::can_attack

bool Selection::can_mine

bool Selection::can_repair

bool Selection::can_build

bool Selection::can_hide

struct { ... } [protected]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:35 2007 for Dark Oberon by  doxygen 1.5.3