#include <selection.h>

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 |
| Prototype * | builder |
| 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 | |
| }; | |
typedef list<Unit *> Selection::UnitsList [protected] |
| Selection::Selection | ( | const char * | id | ) |
| 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.
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_mine |
| bool Selection::can_build |
| bool Selection::can_hide |
struct { ... } [protected] |
1.5.3