#include <lowgrav.h>
Inheritance diagram for LowGrav:
Public Member Functions | |
LowGrav () | |
void | Reset () |
void | HandleKeyEvent (Action::Action_t action, Keyboard::Key_Event_t event_type) |
void | SignalTurnEnd () |
void | Draw () |
void | ActionStopUse () |
Protected Member Functions | |
void | Refresh () |
void | p_Deselect () |
bool | p_Shoot () |
Definition at line 26 of file lowgrav.h.
LowGrav::LowGrav | ( | ) |
Definition at line 35 of file lowgrav.cpp.
00035 : Weapon(WEAPON_LOWGRAV, "lowgrav", 00036 new WeaponConfig(), NEVER_VISIBLE) 00037 { 00038 m_name = _("LowGrav"); 00039 00040 override_keys = true ; 00041 use_unit_on_first_shoot = false; 00042 }
void LowGrav::ActionStopUse | ( | ) | [virtual] |
Reimplemented from Weapon.
Definition at line 87 of file lowgrav.cpp.
00088 { 00089 UseAmmoUnit(); 00090 }
Here is the call graph for this function:
void LowGrav::Draw | ( | ) | [virtual] |
void LowGrav::HandleKeyEvent | ( | Action::Action_t | action, | |
Keyboard::Key_Event_t | event_type | |||
) | [virtual] |
Reimplemented from Weapon.
Definition at line 67 of file lowgrav.cpp.
00068 { 00069 switch (action) 00070 { 00071 case Action::ACTION_SHOOT: 00072 if (event_type == Keyboard::KEY_PRESSED) 00073 ActionHandler::GetInstance()->NewAction(new Action(Action::ACTION_WEAPON_STOP_USE)); 00074 break ; 00075 00076 default: 00077 ActiveCharacter().HandleKeyEvent(action, event_type); 00078 break ; 00079 } 00080 }
Here is the call graph for this function:
void LowGrav::p_Deselect | ( | ) | [protected, virtual] |
Reimplemented from Weapon.
Definition at line 49 of file lowgrav.cpp.
00050 { 00051 ActiveCharacter().ResetConstants(); 00052 ActiveCharacter().SetClothe("normal"); 00053 m_is_active = false; 00054 }
Here is the call graph for this function:
Here is the caller graph for this function:
bool LowGrav::p_Shoot | ( | ) | [protected, virtual] |
Implements Weapon.
Definition at line 56 of file lowgrav.cpp.
00057 { 00058 ActiveCharacter().SetGravityFactor(LOW_GRAVITY_FACTOR); 00059 ActiveCharacter().SetClothe("helmet"); 00060 return true; 00061 }
Here is the call graph for this function:
void LowGrav::Refresh | ( | ) | [protected, virtual] |
Implements Weapon.
Definition at line 44 of file lowgrav.cpp.
00045 { 00046 ActiveCharacter().UpdatePosition(); 00047 }
Here is the call graph for this function:
void LowGrav::Reset | ( | ) |
void LowGrav::SignalTurnEnd | ( | ) | [virtual] |
Reimplemented from Weapon.
Definition at line 82 of file lowgrav.cpp.
00083 { 00084 p_Deselect(); 00085 }
Here is the call graph for this function: