|
UFO: Alien Invasion
|

Go to the source code of this file.
Data Structures | |
| struct | eventTiming_t |
| CL_ParseEvent timers and vars. More... | |
| struct | eventRegister_t |
| Struct that defines one particular event with all its callbacks and data. More... | |
Functions | |
| const eventRegister_t * | CL_GetEvent (const event_t eType) |
| int | CL_GetNextTime (const eventRegister_t *event, eventTiming_t *eventTiming, int nextTime) |
| int | CL_GetStepTime (const eventTiming_t *eventTiming, const le_t *le, int step) |
Calculates the time when the given step was executed in the event chain. | |
| const char * | CL_ConvertSoundFromEvent (char *sound, size_t size) |
| Some sound strings may end on a '+' to indicate to use a random sound which can be identified by replacing the '+' by a number. | |
| const char * CL_ConvertSoundFromEvent | ( | char * | sound, |
| size_t | size ) |
Some sound strings may end on a '+' to indicate to use a random sound which can be identified by replacing the '+' by a number.
| [in,out] | sound | The sound string that we might need to convert |
| [in] | size | The size of the sound buffer |
sound buffer Definition at line 219 of file e_main.cpp.
References FS_CheckFile(), i, length, and Q_strcat().
Referenced by CL_Explode(), and CL_SoundEvent().
| const eventRegister_t * CL_GetEvent | ( | const event_t | eType | ) |
Definition at line 157 of file e_main.cpp.
References Com_Error(), ERR_DROP, EV_NULL, EV_NUM_EVENTS, events, i, and type.
Referenced by CL_CheckBattlescapeEvent(), CL_DelayBattlescapeEvent(), CL_ExecuteBattlescapeEvent(), CL_FilterBattlescapeEvents(), CL_GetEventTime(), CL_NetReceiveItem(), CL_ParseEvent(), and GAME_NetSendItem().
| int CL_GetNextTime | ( | const eventRegister_t * | event, |
| eventTiming_t * | eventTiming, | ||
| int | nextTime ) |
Definition at line 203 of file e_main.cpp.
References Com_DPrintf(), DEBUG_EVENTSYS, eventRegister_t::name, and eventTiming_t::nextTime.
Referenced by CL_ActorDoShootTime(), and CL_ActorShootHiddenTime().
| int CL_GetStepTime | ( | const eventTiming_t * | eventTiming, |
| const le_t * | le, | ||
| int | step ) |
Calculates the time when the given step was executed in the event chain.
| [in] | eventTiming | The structure to get the needed data from |
| [in] | le | The moving actor |
| [in] | step | The step we want to calculate the time for |
-1 on error (invalid input data), otherwise the timestamp the move event was executed for that step Definition at line 177 of file e_main.cpp.
References Com_Printf(), le_t::entnum, i, leStep_t::lastMoveDuration, leStep_t::lastMoveTime, leStep_t::next, eventTiming_t::nextTime, le_t::stepIndex, le_t::stepList, leStep_t::steps, and leStep_t::stepTimes.
Referenced by CL_ActorReactionFireAbortShotTime(), CL_ActorReactionFireAddTargetTime(), CL_ActorReactionFireRemoveTargetTime(), CL_ActorReactionFireTargetUpdateTime(), and CL_SoundEventTime().