Game_clock Class Reference

#include <gameclk.h>

Inheritance diagram for Game_clock:

Inheritance graph
[legend]
Collaboration diagram for Game_clock:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Game_clock (Time_queue *tq)
int get_hour ()
void set_hour (int h)
int get_minute ()
void set_minute (int m)
int get_day ()
void set_day (int d)
unsigned long get_total_hours ()
unsigned long get_total_minutes ()
void set_palette ()
void set_light_source (int lev, int dun)
void set_storm (bool onoff)
void increment (int num_minutes)
virtual void handle_event (unsigned long curtime, long udata)
void fake_next_period ()
int get_time_rate ()
void set_time_rate (int i)

Private Member Functions

void set_time_palette ()
void set_light_source_level (int lev)
void check_hunger ()

Private Attributes

Time_queuetqueue
short hour
short minute
int day
int light_source_level
unsigned int dungeon
int storm
unsigned short time_rate

Detailed Description

Definition at line 35 of file gameclk.h.


Constructor & Destructor Documentation

Game_clock::Game_clock ( Time_queue tq  )  [inline]

Definition at line 48 of file gameclk.h.


Member Function Documentation

void Game_clock::set_time_palette (  )  [private]

Definition at line 37 of file gameclk.cc.

References cheat, Ireg_game_object::get_flag(), Game_window::get_instance(), Game_window::get_main_actor(), Game_window::get_pal(), gwin, Cheat::in_infravision(), Obj_flags::invisible, Game_window::is_in_dungeon(), Game_window::is_special_light(), PALETTE_DAWN, PALETTE_DAY, PALETTE_DUSK, PALETTE_INVISIBLE, PALETTE_NIGHT, and Palette::set().

Here is the call graph for this function:

void Game_clock::set_light_source_level ( int  lev  )  [private]

Definition at line 96 of file gameclk.cc.

Referenced by set_light_source().

void Game_clock::check_hunger (  )  [private]

Definition at line 122 of file gameclk.cc.

References Game_window::get_instance(), Game_window::get_party(), and gwin.

Here is the call graph for this function:

int Game_clock::get_hour (  )  [inline]

Definition at line 52 of file gameclk.h.

References hour.

Referenced by Frame_animator::get_framenum(), Background_noise::handle_event(), Newfile_gump::LoadSaveGameDetails(), CheatScreen::NormalDisplay(), and Game_window::write_saveinfo().

void Game_clock::set_hour ( int  h  )  [inline]

Definition at line 54 of file gameclk.h.

References hour.

Referenced by CheatScreen::TimeSetLoop().

int Game_clock::get_minute (  )  [inline]

Definition at line 56 of file gameclk.h.

References minute.

Referenced by Newfile_gump::LoadSaveGameDetails(), CheatScreen::NormalDisplay(), and Game_window::write_saveinfo().

void Game_clock::set_minute ( int  m  )  [inline]

Definition at line 58 of file gameclk.h.

References minute.

Referenced by CheatScreen::TimeSetLoop().

int Game_clock::get_day (  )  [inline]

Definition at line 60 of file gameclk.h.

References day.

Referenced by CheatScreen::NormalDisplay(), and Game_window::write_saveinfo().

void Game_clock::set_day ( int  d  )  [inline]

Definition at line 62 of file gameclk.h.

References day.

Referenced by CheatScreen::TimeSetLoop().

unsigned long Game_clock::get_total_hours (  )  [inline]

Definition at line 64 of file gameclk.h.

References day, and hour.

Referenced by get_total_minutes(), and Newfile_gump::LoadSaveGameDetails().

unsigned long Game_clock::get_total_minutes (  )  [inline]

Definition at line 66 of file gameclk.h.

References get_total_hours(), and minute.

Here is the call graph for this function:

void Game_clock::set_palette (  ) 

Definition at line 84 of file gameclk.cc.

Referenced by VideoOptions_gump::load_settings(), CheatScreen::show_screen(), Gamemenu_gump::video_options(), and Lightning_effect::~Lightning_effect().

void Game_clock::set_light_source ( int  lev,
int  dun 
) [inline]

Definition at line 71 of file gameclk.h.

References dungeon, light_source_level, and set_light_source_level().

Here is the call graph for this function:

void Game_clock::set_storm ( bool  onoff  ) 

Definition at line 109 of file gameclk.cc.

Referenced by Storm_effect::handle_event(), and Storm_effect::~Storm_effect().

void Game_clock::increment ( int  num_minutes  ) 

Definition at line 152 of file gameclk.cc.

References Game::get_game_type(), Game_window::get_instance(), gwin, Game_window::schedule_npcs(), SERPENT_ISLE, and time_factor.

Here is the call graph for this function:

void Game_clock::handle_event ( unsigned long  curtime,
long  udata 
) [virtual]

Implements Time_sensitive.

Definition at line 186 of file gameclk.cc.

References Check_freezing(), COUT, Game::get_game_type(), gwin, Game_window::is_time_stopped(), Game_window::mend_npcs(), Game_window::schedule_npcs(), SERPENT_ISLE, and time_factor.

Here is the call graph for this function:

void Game_clock::fake_next_period (  ) 

Definition at line 231 of file gameclk.cc.

References COUT, Game_window::get_instance(), gwin, Game_window::mend_npcs(), and Game_window::schedule_npcs().

Referenced by Cheat::fake_time_period().

Here is the call graph for this function:

int Game_clock::get_time_rate (  )  [inline]

Definition at line 80 of file gameclk.h.

References time_rate.

Referenced by CheatScreen::NormalActivate(), and CheatScreen::NormalMenu().

void Game_clock::set_time_rate ( int  i  )  [inline]

Definition at line 81 of file gameclk.h.

References time_rate.

Referenced by CheatScreen::NormalActivate().


Member Data Documentation

Time_queue* Game_clock::tqueue [private]

Definition at line 37 of file gameclk.h.

short Game_clock::hour [private]

Definition at line 38 of file gameclk.h.

Referenced by get_hour(), get_total_hours(), and set_hour().

short Game_clock::minute [private]

Definition at line 38 of file gameclk.h.

Referenced by get_minute(), get_total_minutes(), and set_minute().

int Game_clock::day [private]

Definition at line 39 of file gameclk.h.

Referenced by get_day(), get_total_hours(), and set_day().

int Game_clock::light_source_level [private]

Definition at line 40 of file gameclk.h.

Referenced by set_light_source().

unsigned int Game_clock::dungeon [private]

Definition at line 41 of file gameclk.h.

Referenced by set_light_source().

int Game_clock::storm [private]

Definition at line 42 of file gameclk.h.

unsigned short Game_clock::time_rate [private]

Definition at line 43 of file gameclk.h.

Referenced by get_time_rate(), and set_time_rate().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:52:36 2007 for ExultEngine by  doxygen 1.5.1