#include <forceunit.h>
Public Member Functions | |
ForceUnit (const char *id) | |
bool | CanHideToUnit (const Unit *unit, bool write_msg) const |
virtual void | OnMessage (ActionEvent *pevent) |
virtual void | OnMessage (StateEvent *pevent) |
Protected Member Functions | |
bool | StartHiding (Unit *unit) |
virtual void | StopAction () |
virtual bool | SetModel (const string &model_id, byte_t num_id) |
virtual bool | ActivateModel (ModelType model) |
Protected Attributes | |
byte_t | models [MODEL_COUNT][MapEnums::DIRECTION_COUNT] |
Ref< Unit > | hider |
ForceUnit::ForceUnit | ( | const char * | id | ) |
Constructor.
bool ForceUnit::CanHideToUnit | ( | const Unit * | unit, | |
bool | write_msg | |||
) | const |
void ForceUnit::OnMessage | ( | ActionEvent * | pevent | ) | [virtual] |
Reimplemented from Unit.
void ForceUnit::OnMessage | ( | StateEvent * | pevent | ) | [virtual] |
Reimplemented from Unit.
bool ForceUnit::StartHiding | ( | Unit * | unit | ) | [protected] |
void ForceUnit::StopAction | ( | ) | [protected, virtual] |
Reimplemented from Unit.
bool ForceUnit::SetModel | ( | const string & | model_id, | |
byte_t | num_id | |||
) | [protected, virtual] |
Reimplemented from Unit.
byte_t ForceUnit::models[MODEL_COUNT][MapEnums::DIRECTION_COUNT] [protected] |
Ref<Unit> ForceUnit::hider [protected] |