doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
idElevator Class Reference

#include <Mover.h>

Inheritance diagram for idElevator:
idMover idEntity idClass

Public Member Functions

 CLASS_PROTOTYPE (idElevator)
 
 idElevator (void)
 
void Spawn ()
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual bool HandleSingleGuiCommand (idEntity *entityGui, idLexer *src)
 
void Event_GotoFloor (int floor)
 
floorInfo_sGetFloorInfo (int floor)
 
- Public Member Functions inherited from idMover
 CLASS_PROTOTYPE (idMover)
 
 idMover (void)
 
void Spawn (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
virtual void Killed (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
virtual void WriteToSnapshot (idBitMsgDelta &msg) const
 
virtual void ReadFromSnapshot (const idBitMsgDelta &msg)
 
virtual void Hide (void)
 
virtual void Show (void)
 
void SetPortalState (bool open)
 
- Public Member Functions inherited from idEntity
 ABSTRACT_PROTOTYPE (idEntity)
 
 idEntity ()
 
 ~idEntity ()
 
void Spawn (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
const char * GetEntityDefName (void) const
 
void SetName (const char *name)
 
const char * GetName (void) const
 
virtual void UpdateChangeableSpawnArgs (const idDict *source)
 
virtual renderView_tGetRenderView ()
 
bool CheckDormant (void)
 
virtual void DormantBegin (void)
 
virtual void DormantEnd (void)
 
bool IsActive (void) const
 
void BecomeActive (int flags)
 
void BecomeInactive (int flags)
 
void UpdatePVSAreas (const idVec3 &pos)
 
virtual void Present (void)
 
virtual renderEntity_tGetRenderEntity (void)
 
virtual int GetModelDefHandle (void)
 
virtual void SetModel (const char *modelname)
 
void SetSkin (const idDeclSkin *skin)
 
const idDeclSkinGetSkin (void) const
 
void SetShaderParm (int parmnum, float value)
 
virtual void SetColor (float red, float green, float blue)
 
virtual void SetColor (const idVec3 &color)
 
virtual void GetColor (idVec3 &out) const
 
virtual void SetColor (const idVec4 &color)
 
virtual void GetColor (idVec4 &out) const
 
virtual void FreeModelDef (void)
 
virtual void FreeLightDef (void)
 
bool IsHidden (void) const
 
void UpdateVisuals (void)
 
void UpdateModel (void)
 
void UpdateModelTransform (void)
 
virtual void ProjectOverlay (const idVec3 &origin, const idVec3 &dir, float size, const char *material)
 
int GetNumPVSAreas (void)
 
const intGetPVSAreas (void)
 
void ClearPVSAreas (void)
 
bool PhysicsTeamInPVS (pvsHandle_t pvsHandle)
 
virtual bool UpdateAnimationControllers (void)
 
bool UpdateRenderEntity (renderEntity_s *renderEntity, const renderView_t *renderView)
 
virtual idAnimatorGetAnimator (void)
 
virtual bool CanPlayChatterSounds (void) const
 
bool StartSound (const char *soundName, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
bool StartSoundShader (const idSoundShader *shader, const s_channelType channel, int soundShaderFlags, bool broadcast, int *length)
 
void StopSound (const s_channelType channel, bool broadcast)
 
void SetSoundVolume (float volume)
 
void UpdateSound (void)
 
int GetListenerId (void) const
 
idSoundEmitterGetSoundEmitter (void) const
 
void FreeSoundEmitter (bool immediate)
 
virtual void PreBind (void)
 
virtual void PostBind (void)
 
virtual void PreUnbind (void)
 
virtual void PostUnbind (void)
 
void JoinTeam (idEntity *teammember)
 
void Bind (idEntity *master, bool orientated)
 
void BindToJoint (idEntity *master, const char *jointname, bool orientated)
 
void BindToJoint (idEntity *master, jointHandle_t jointnum, bool orientated)
 
void BindToBody (idEntity *master, int bodyId, bool orientated)
 
void Unbind (void)
 
bool IsBound (void) const
 
bool IsBoundTo (idEntity *master) const
 
idEntityGetBindMaster (void) const
 
jointHandle_t GetBindJoint (void) const
 
int GetBindBody (void) const
 
idEntityGetTeamMaster (void) const
 
idEntityGetNextTeamEntity (void) const
 
void ConvertLocalToWorldTransform (idVec3 &offset, idMat3 &axis)
 
idVec3 GetLocalVector (const idVec3 &vec) const
 
idVec3 GetLocalCoordinates (const idVec3 &vec) const
 
idVec3 GetWorldVector (const idVec3 &vec) const
 
idVec3 GetWorldCoordinates (const idVec3 &vec) const
 
bool GetMasterPosition (idVec3 &masterOrigin, idMat3 &masterAxis) const
 
void GetWorldVelocities (idVec3 &linearVelocity, idVec3 &angularVelocity) const
 
void SetPhysics (idPhysics *phys)
 
idPhysicsGetPhysics (void) const
 
void RestorePhysics (idPhysics *phys)
 
bool RunPhysics (void)
 
void SetOrigin (const idVec3 &org)
 
void SetAxis (const idMat3 &axis)
 
void SetAngles (const idAngles &ang)
 
bool GetFloorPos (float max_dist, idVec3 &floorpos) const
 
virtual bool GetPhysicsToVisualTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool GetPhysicsToSoundTransform (idVec3 &origin, idMat3 &axis)
 
virtual bool Collide (const trace_t &collision, const idVec3 &velocity)
 
virtual void GetImpactInfo (idEntity *ent, int id, const idVec3 &point, impactInfo_t *info)
 
virtual void ApplyImpulse (idEntity *ent, int id, const idVec3 &point, const idVec3 &impulse)
 
virtual void AddForce (idEntity *ent, int id, const idVec3 &point, const idVec3 &force)
 
virtual void ActivatePhysics (idEntity *ent)
 
virtual bool IsAtRest (void) const
 
virtual int GetRestStartTime (void) const
 
virtual void AddContactEntity (idEntity *ent)
 
virtual void RemoveContactEntity (idEntity *ent)
 
virtual bool CanDamage (const idVec3 &origin, idVec3 &damagePoint) const
 
virtual void Damage (idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location)
 
virtual void AddDamageEffect (const trace_t &collision, const idVec3 &velocity, const char *damageDefName)
 
virtual void DamageFeedback (idEntity *victim, idEntity *inflictor, int &damage)
 
virtual bool Pain (idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location)
 
virtual bool ShouldConstructScriptObjectAtSpawn (void) const
 
virtual idThreadConstructScriptObject (void)
 
virtual void DeconstructScriptObject (void)
 
void SetSignal (signalNum_t signalnum, idThread *thread, const function_t *function)
 
void ClearSignal (idThread *thread, signalNum_t signalnum)
 
void ClearSignalThread (signalNum_t signalnum, idThread *thread)
 
bool HasSignal (signalNum_t signalnum) const
 
void Signal (signalNum_t signalnum)
 
void SignalEvent (idThread *thread, signalNum_t signalnum)
 
void TriggerGuis (void)
 
bool HandleGuiCommands (idEntity *entityGui, const char *cmds)
 
void FindTargets (void)
 
void RemoveNullTargets (void)
 
void ActivateTargets (idEntity *activator) const
 
virtual void Teleport (const idVec3 &origin, const idAngles &angles, idEntity *destination)
 
bool TouchTriggers (void) const
 
idCurve_Spline< idVec3 > * GetSpline (void) const
 
virtual void ShowEditingDialog (void)
 
virtual void ClientPredictionThink (void)
 
virtual bool ServerReceiveEvent (int event, int time, const idBitMsg &msg)
 
virtual bool ClientReceiveEvent (int event, int time, const idBitMsg &msg)
 
void WriteBindToSnapshot (idBitMsgDelta &msg) const
 
void ReadBindFromSnapshot (const idBitMsgDelta &msg)
 
void WriteColorToSnapshot (idBitMsgDelta &msg) const
 
void ReadColorFromSnapshot (const idBitMsgDelta &msg)
 
void WriteGUIToSnapshot (idBitMsgDelta &msg) const
 
void ReadGUIFromSnapshot (const idBitMsgDelta &msg)
 
void ServerSendEvent (int eventId, const idBitMsg *msg, bool saveEvent, int excludeClient) const
 
void ClientSendEvent (int eventId, const idBitMsg *msg) const
 
- Public Member Functions inherited from idClass
 ABSTRACT_PROTOTYPE (idClass)
 
voidoperator new (size_t)
 
voidoperator new (size_t s, int, int, char *, int)
 
void operator delete (void *)
 
void operator delete (void *, int, int, char *, int)
 
virtual ~idClass ()
 
void Spawn (void)
 
void CallSpawn (void)
 
bool IsType (const idTypeInfo &c) const
 
const char * GetClassname (void) const
 
const char * GetSuperclass (void) const
 
void FindUninitializedMemory (void)
 
void Save (idSaveGame *savefile) const
 
void Restore (idRestoreGame *savefile)
 
bool RespondsTo (const idEventDef &ev) const
 
bool PostEventMS (const idEventDef *ev, int time)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventMS (const idEventDef *ev, int time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool PostEventSec (const idEventDef *ev, float time)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool PostEventSec (const idEventDef *ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEvent (const idEventDef *ev)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7)
 
bool ProcessEvent (const idEventDef *ev, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8)
 
bool ProcessEventArgPtr (const idEventDef *ev, int *data)
 
void CancelEvents (const idEventDef *ev)
 
void Event_Remove (void)
 

Protected Member Functions

virtual void DoneMoving (void)
 
virtual void BeginMove (idThread *thread=NULL)
 
void SpawnTrigger (const idVec3 &pos)
 
void GetLocalTriggerPosition ()
 
void Event_Touch (idEntity *other, trace_t *trace)
 
- Protected Member Functions inherited from idMover
void Event_OpenPortal (void)
 
void Event_ClosePortal (void)
 
void Event_PartBlocked (idEntity *blockingEntity)
 
void MoveToPos (const idVec3 &pos)
 
void UpdateMoveSound (moveStage_t stage)
 
void UpdateRotationSound (moveStage_t stage)
 
void SetGuiStates (const char *state)
 
void FindGuiTargets (void)
 
void SetGuiState (const char *key, const char *val) const
 
virtual void DoneRotating (void)
 
virtual void BeginRotation (idThread *thread, bool stopwhendone)
 

Private Types

enum  elevatorState_t { INIT, IDLE, WAITING_ON_DOORS }
 

Private Member Functions

class idDoorGetDoor (const char *name)
 
void Think (void)
 
void OpenInnerDoor (void)
 
void OpenFloorDoor (int floor)
 
void CloseAllDoors (void)
 
void DisableAllDoors (void)
 
void EnableProperDoors (void)
 
void Event_TeamBlocked (idEntity *blockedEntity, idEntity *blockingEntity)
 
void Event_Activate (idEntity *activator)
 
void Event_PostFloorArrival ()
 

Private Attributes

elevatorState_t state
 
idList< floorInfo_sfloorInfo
 
int currentFloor
 
int pendingFloor
 
int lastFloor
 
bool controlsDisabled
 
float returnTime
 
int returnFloor
 
int lastTouchTime
 

Additional Inherited Members

- Public Types inherited from idEntity
enum  { EVENT_STARTSOUNDSHADER, EVENT_STOPSOUNDSHADER, EVENT_MAXEVENTS }
 
- Static Public Member Functions inherited from idEntity
static bool ModelCallback (renderEntity_s *renderEntity, const renderView_t *renderView)
 
- Static Public Member Functions inherited from idClass
static void Init (void)
 
static void Shutdown (void)
 
static idTypeInfoGetClass (const char *name)
 
static void DisplayInfo_f (const idCmdArgs &args)
 
static void ListClasses_f (const idCmdArgs &args)
 
static idClassCreateInstance (const char *name)
 
static int GetNumTypes (void)
 
static int GetTypeNumBits (void)
 
static idTypeInfoGetType (int num)
 
- Public Attributes inherited from idEntity
int entityNumber
 
int entityDefNumber
 
idLinkList< idEntityspawnNode
 
idLinkList< idEntityactiveNode
 
idLinkList< idEntitysnapshotNode
 
int snapshotSequence
 
int snapshotBits
 
idStr name
 
idDict spawnArgs
 
idScriptObject scriptObject
 
int thinkFlags
 
int dormantStart
 
bool cinematic
 
renderView_trenderView
 
idEntitycameraTarget
 
idList< idEntityPtr< idEntity > > targets
 
int health
 
struct idEntity::entityFlags_s fl
 
- Static Public Attributes inherited from idEntity
static const int MAX_PVS_AREAS = 4
 
- Protected Types inherited from idMover
enum  moveStage_t { ACCELERATION_STAGE, LINEAR_STAGE, DECELERATION_STAGE, FINISHED_STAGE }
 
enum  moverCommand_t { MOVER_NONE, MOVER_ROTATING, MOVER_MOVING, MOVER_SPLINE }
 
enum  moverDir_t {
  DIR_UP = -1, DIR_DOWN = -2, DIR_LEFT = -3, DIR_RIGHT = -4,
  DIR_FORWARD = -5, DIR_BACK = -6, DIR_REL_UP = -7, DIR_REL_DOWN = -8,
  DIR_REL_LEFT = -9, DIR_REL_RIGHT = -10, DIR_REL_FORWARD = -11, DIR_REL_BACK = -12
}
 
- Protected Attributes inherited from idMover
idPhysics_Parametric physicsObj
 
moveState_t move
 
- Protected Attributes inherited from idEntity
renderEntity_t renderEntity
 
int modelDefHandle
 
refSound_t refSound
 

Detailed Description

Definition at line 214 of file Mover.h.

Member Enumeration Documentation

Enumerator
INIT 
IDLE 
WAITING_ON_DOORS 

Definition at line 237 of file Mover.h.

Constructor & Destructor Documentation

END_CLASS idElevator::idElevator ( void  )

Definition at line 1596 of file Mover.cpp.

Member Function Documentation

void idElevator::BeginMove ( idThread thread = NULL)
protectedvirtual

Reimplemented from idMover.

Definition at line 1915 of file Mover.cpp.

idElevator::CLASS_PROTOTYPE ( idElevator  )
void idElevator::CloseAllDoors ( void  )
private

Definition at line 2021 of file Mover.cpp.

void idElevator::DisableAllDoors ( void  )
private

Definition at line 2039 of file Mover.cpp.

void idElevator::DoneMoving ( void  )
protectedvirtual

Reimplemented from idMover.

Definition at line 1992 of file Mover.cpp.

void idElevator::EnableProperDoors ( void  )
private

Definition at line 2057 of file Mover.cpp.

void idElevator::Event_Activate ( idEntity activator)
private

Definition at line 1777 of file Mover.cpp.

void idElevator::Event_GotoFloor ( int  floor)

Definition at line 1893 of file Mover.cpp.

void idElevator::Event_PostFloorArrival ( )
private

Definition at line 1971 of file Mover.cpp.

void idElevator::Event_TeamBlocked ( idEntity blockedEntity,
idEntity blockingEntity 
)
private

Definition at line 1789 of file Mover.cpp.

void idElevator::Event_Touch ( idEntity other,
trace_t trace 
)
protected

Definition at line 1704 of file Mover.cpp.

idDoor * idElevator::GetDoor ( const char *  name)
private

Definition at line 1942 of file Mover.cpp.

floorInfo_s * idElevator::GetFloorInfo ( int  floor)

Definition at line 1879 of file Mover.cpp.

void idElevator::GetLocalTriggerPosition ( )
protected
bool idElevator::HandleSingleGuiCommand ( idEntity entityGui,
idLexer src 
)
virtual

Reimplemented from idEntity.

Definition at line 1809 of file Mover.cpp.

void idElevator::OpenFloorDoor ( int  floor)
private

Definition at line 1852 of file Mover.cpp.

void idElevator::OpenInnerDoor ( void  )
private

Definition at line 1867 of file Mover.cpp.

void idElevator::Restore ( idRestoreGame savefile)

Definition at line 1639 of file Mover.cpp.

void idElevator::Save ( idSaveGame savefile) const

Definition at line 1613 of file Mover.cpp.

void idElevator::Spawn ( void  )

Definition at line 1669 of file Mover.cpp.

void idElevator::SpawnTrigger ( const idVec3 pos)
protected
void idElevator::Think ( void  )
privatevirtual

Reimplemented from idEntity.

Definition at line 1731 of file Mover.cpp.

Member Data Documentation

bool idElevator::controlsDisabled
private

Definition at line 248 of file Mover.h.

int idElevator::currentFloor
private

Definition at line 245 of file Mover.h.

idList<floorInfo_s> idElevator::floorInfo
private

Definition at line 244 of file Mover.h.

int idElevator::lastFloor
private

Definition at line 247 of file Mover.h.

int idElevator::lastTouchTime
private

Definition at line 251 of file Mover.h.

int idElevator::pendingFloor
private

Definition at line 246 of file Mover.h.

int idElevator::returnFloor
private

Definition at line 250 of file Mover.h.

float idElevator::returnTime
private

Definition at line 249 of file Mover.h.

elevatorState_t idElevator::state
private

Definition at line 243 of file Mover.h.


The documentation for this class was generated from the following files: