Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

src/timer.c File Reference


Detailed Description

Controls timed effects.

Definition in file timer.c.

#include "crogue.h"

Go to the source code of this file.

Functions

void init_timers (void)
void apply_timers (void)
int remove_expired_timers (void)
void add_timer (const timer_desc *desc, uint duration)


Function Documentation

void add_timer const timer_desc desc,
uint  duration
 

Definition at line 78 of file timer.c.

References stat_timer::expiry, NUM_STATMOD_TIMERS, world::plr, timer_desc::stat, player::stat_timers, world::time, stat_timer_desc::type, stat_timer::type, update_player(), and w.

Referenced by confuse(), detect_invisible(), engulf_in_darkness(), entangle(), hallucinate(), numb(), paralyze(), spell_adrenaline(), spell_adrenaline_low(), spell_gain_strength(), spell_heal(), and spell_shield().

void apply_timers void   ) 
 

Definition at line 34 of file timer.c.

References apply_stat_mod_desc(), NUM_STATMOD_TIMERS, world::plr, player::stat_timers, TIMER_FUNC, TIMER_STAT, stat_timer::type, and w.

Referenced by update_player().

void init_timers void   ) 
 

Definition at line 26 of file timer.c.

References NUM_STATMOD_TIMERS, world::plr, player::stat_timers, and w.

Referenced by init_player().

int remove_expired_timers void   ) 
 

Definition at line 54 of file timer.c.

References stat_timer::expiry, message(), NUM_STATMOD_TIMERS, world::plr, player::stat_timers, world::time, TIMER_FUNC, TIMER_STAT, stat_timer::type, and w.

Referenced by timepass().


Generated on Thu May 20 13:12:13 2004 for CalcRogue by doxygen 1.3.6