Planeshift
|
Manages main character movements. More...
#include <psmovement.h>
Public Member Functions | |
void | CancelRunTo () |
GEMClientActor * | ControlledActor () |
const psCharMode * | FindCharMode (size_t id) const |
const psCharMode * | FindCharMode (const char *name) const |
const psMovement * | FindMovement (const char *name) const |
bool | GetInvertedMouse () |
const char * | GetModeIdleAnim (size_t id) const |
bool | HandleEvent (iEvent &event) |
void | HandleMessage (MsgEntry *me) |
bool | IsLocked () |
bool | IsReady () |
Ready to receive events? More... | |
void | LoadMouseSettings () |
void | LockMoves (bool v) |
void | MouseLook (bool v) |
bool | MouseLook () |
void | MouseLook (iEvent &ev) |
void | MouseLookCanAct (bool v) |
bool | MouseLookCanAct () |
bool | MouseMove () |
void | MouseZoom (bool v) |
bool | MouseZoom () |
void | MouseZoom (iEvent &ev) |
bool | MoveStateChanged (psMoveState &state) |
psMovementManager (iEventNameRegistry *eventname_reg, psControlManager *controls) | |
void | Push (const psMovement *move) |
Use a movement once. More... | |
void | SaveMoveState (psMoveState &state) |
void | SetActor (GEMClientActor *actor) |
void | SetInvertedMouse (bool v) |
void | SetMouseMove (bool v) |
void | SetMouseSensX (float v) |
void | SetMouseSensY (float v) |
bool | SetRun (bool runState) |
Set the character run mode. More... | |
void | SetRunToPos (psPoint &mouse) |
void | SetSneaking (bool v) |
bool | Sneaking () |
void | Start (const psCharMode *mode) |
Switch to a new mode. More... | |
void | Start (const psMovement *move) |
Add a new movement. More... | |
void | Stop (const psCharMode *mode) |
Switch back to normal mode. More... | |
void | Stop (const psMovement *move) |
Stop an existing movement. More... | |
void | StopAllMovement () |
Stops all movements, resets mode, cancels mousemove, and halts the actor. More... | |
void | StopControlledMovement () |
Stops all user applied movements/modes (does not halt actor if falling or mousemove) More... | |
void | ToggleAutoMove () |
bool | ToggleRun () |
Toggle the character run mode. More... | |
void | UpdateMouseLook () |
void | UpdateRunTo () |
~psMovementManager () | |
![]() | |
virtual void | HandleMessage (MsgEntry *msg, Client *) |
Interprets a received message and executes the command. More... | |
virtual bool | Verify (MsgEntry *, unsigned int, Client *&) |
virtual | ~psClientNetSubscriber () |
Protected Member Functions | |
void | ApplyMod (psVelocity &vel) |
void | HandleMod (psMoveModMsg &msg) |
void | SetActorMode (const psCharMode *mode) |
void | SetupControls () |
void | SetupMovements (psMovementInfoMessage &msg) |
void | UpdateVelocity () |
Manages main character movements.
Starts/stops modes and movements for the controled character. Modes and movements are stored in the server's database and requested upon login. The primary way this class is accessed is via psTriggerHandler function calls from button presses registered by psControlManager.
Definition at line 84 of file psmovement.h.
psMovementManager::psMovementManager | ( | iEventNameRegistry * | eventname_reg, |
psControlManager * | controls | ||
) |
psMovementManager::~psMovementManager | ( | ) |
|
protected |
void psMovementManager::CancelRunTo | ( | ) |
|
inline |
Definition at line 153 of file psmovement.h.
|
inline |
Definition at line 157 of file psmovement.h.
const psCharMode* psMovementManager::FindCharMode | ( | const char * | name | ) | const |
const psMovement* psMovementManager::FindMovement | ( | const char * | name | ) | const |
|
inline |
Definition at line 182 of file psmovement.h.
|
inline |
Definition at line 156 of file psmovement.h.
bool psMovementManager::HandleEvent | ( | iEvent & | event | ) |
|
virtual |
Implements psClientNetSubscriber.
|
protected |
|
inline |
Definition at line 162 of file psmovement.h.
|
inline |
Ready to receive events?
Definition at line 161 of file psmovement.h.
void psMovementManager::LoadMouseSettings | ( | ) |
void psMovementManager::LockMoves | ( | bool | v | ) |
void psMovementManager::MouseLook | ( | bool | v | ) |
|
inline |
Definition at line 189 of file psmovement.h.
void psMovementManager::MouseLook | ( | iEvent & | ev | ) |
void psMovementManager::MouseLookCanAct | ( | bool | v | ) |
|
inline |
Definition at line 186 of file psmovement.h.
|
inline |
Definition at line 198 of file psmovement.h.
|
inline |
Definition at line 193 of file psmovement.h.
|
inline |
Definition at line 194 of file psmovement.h.
void psMovementManager::MouseZoom | ( | iEvent & | ev | ) |
|
inline |
Definition at line 229 of file psmovement.h.
void psMovementManager::Push | ( | const psMovement * | move | ) |
Use a movement once.
|
inline |
Definition at line 222 of file psmovement.h.
void psMovementManager::SetActor | ( | GEMClientActor * | actor | ) |
|
protected |
|
inline |
Definition at line 181 of file psmovement.h.
|
inline |
Definition at line 197 of file psmovement.h.
|
inline |
Definition at line 179 of file psmovement.h.
|
inline |
Definition at line 180 of file psmovement.h.
bool psMovementManager::SetRun | ( | bool | runState | ) |
Set the character run mode.
True to enable run mode. False to disable.
void psMovementManager::SetRunToPos | ( | psPoint & | mouse | ) |
|
inline |
Definition at line 219 of file psmovement.h.
|
protected |
|
protected |
|
inline |
Definition at line 220 of file psmovement.h.
void psMovementManager::Start | ( | const psCharMode * | mode | ) |
Switch to a new mode.
void psMovementManager::Start | ( | const psMovement * | move | ) |
Add a new movement.
void psMovementManager::Stop | ( | const psCharMode * | mode | ) |
Switch back to normal mode.
void psMovementManager::Stop | ( | const psMovement * | move | ) |
Stop an existing movement.
void psMovementManager::StopAllMovement | ( | ) |
Stops all movements, resets mode, cancels mousemove, and halts the actor.
void psMovementManager::StopControlledMovement | ( | ) |
Stops all user applied movements/modes (does not halt actor if falling or mousemove)
void psMovementManager::ToggleAutoMove | ( | ) |
bool psMovementManager::ToggleRun | ( | ) |
Toggle the character run mode.
void psMovementManager::UpdateMouseLook | ( | ) |
void psMovementManager::UpdateRunTo | ( | ) |
|
protected |
|
protected |
Definition at line 114 of file psmovement.h.
|
protected |
Definition at line 113 of file psmovement.h.
|
protected |
Bit mask for active moves.
Definition at line 96 of file psmovement.h.
|
protected |
Actor we're moving here.
Definition at line 92 of file psmovement.h.
|
protected |
Current active mode.
Definition at line 94 of file psmovement.h.
|
protected |
Definition at line 116 of file psmovement.h.
|
protected |
Definition at line 139 of file psmovement.h.
|
protected |
Definition at line 104 of file psmovement.h.
|
protected |
Default actor mode.
Definition at line 90 of file psmovement.h.
|
protected |
Definition at line 135 of file psmovement.h.
|
protected |
Definition at line 136 of file psmovement.h.
|
protected |
Definition at line 138 of file psmovement.h.
|
protected |
Definition at line 131 of file psmovement.h.
|
protected |
Definition at line 143 of file psmovement.h.
|
protected |
Definition at line 132 of file psmovement.h.
|
protected |
Definition at line 133 of file psmovement.h.
|
protected |
Definition at line 125 of file psmovement.h.
|
protected |
Is this player allowed to move?
Definition at line 102 of file psmovement.h.
|
protected |
All available character modes.
Definition at line 87 of file psmovement.h.
|
protected |
Definition at line 123 of file psmovement.h.
|
protected |
Definition at line 118 of file psmovement.h.
|
protected |
Definition at line 119 of file psmovement.h.
|
protected |
Definition at line 121 of file psmovement.h.
|
protected |
Definition at line 120 of file psmovement.h.
|
protected |
Current total of all active move velocities.
Definition at line 97 of file psmovement.h.
|
protected |
All available movement types.
Definition at line 88 of file psmovement.h.
|
protected |
Is actor on ground or airborne?
Definition at line 95 of file psmovement.h.
|
protected |
Have movements been setup?
Definition at line 101 of file psmovement.h.
|
protected |
Definition at line 140 of file psmovement.h.
|
protected |
Definition at line 126 of file psmovement.h.
|
protected |
Definition at line 124 of file psmovement.h.
|
protected |
Definition at line 130 of file psmovement.h.
|
protected |
Definition at line 129 of file psmovement.h.
|
protected |
Definition at line 122 of file psmovement.h.
|
protected |
Definition at line 117 of file psmovement.h.
|
protected |
Definition at line 141 of file psmovement.h.