Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Horde Class Reference

#include </home/clem/local/src/opie/noncore/games/kbill/Horde.h>

Collaboration diagram for Horde:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void load_pix ()
void setup ()
void launch (int max)
int on (unsigned int lev)
int max_at_once (unsigned int lev)
int between (unsigned int lev)
void update ()
void draw ()

Public Attributes

Monster list [MAX_BILLS]
int width
int height
int on_screen
int off_screen
Picture lcels [WCELS]
Picture rcels [WCELS]
Picture acels [ACELS]
Picture dcels [DCELS]

Static Public Attributes

static const int MAX_BILLS = 100
static const int WCELS = 4
static const int DCELS = 5
static const int ACELS = 13

Member Function Documentation

int Horde::between unsigned int  lev  ) 
 

Definition at line 31 of file Horde.cc.

References game, and Game::MAX().

Referenced by update().

void Horde::draw  ) 
 

Definition at line 60 of file Horde.cc.

References Monster::draw(), i, list, and MAX_BILLS.

Referenced by Game::update().

void Horde::launch int  max  ) 
 

Definition at line 11 of file Horde.cc.

References Monster::enter(), game, i, list, MAX_BILLS, Game::MIN(), off_screen, and Game::RAND().

Referenced by update().

void Horde::load_pix  ) 
 

Definition at line 35 of file Horde.cc.

References acels, ACELS, dcels, DCELS, Picture::height, height, i, lcels, Picture::load(), rcels, WCELS, Picture::width, and width.

Referenced by Game::main().

int Horde::max_at_once unsigned int  lev  ) 
 

Definition at line 27 of file Horde.cc.

References game, and Game::MIN().

Referenced by update().

int Horde::on unsigned int  lev  ) 
 

Definition at line 23 of file Horde.cc.

References game, MAX_BILLS, and Game::MIN().

Referenced by setup().

void Horde::setup  ) 
 

Definition at line 3 of file Horde.cc.

References game, i, Game::level, list, MAX_BILLS, Monster::OFF, off_screen, on(), on_screen, and Monster::state.

Referenced by Game::setup_level().

void Horde::update  ) 
 

Definition at line 53 of file Horde.cc.

References between(), game, i, Game::iteration, launch(), Game::level, list, max_at_once(), MAX_BILLS, and Monster::update().

Referenced by Game::update().


Member Data Documentation

Picture Horde::acels[ACELS]
 

Definition at line 16 of file Horde.h.

Referenced by load_pix(), and Monster::update_in().

const int Horde::ACELS = 13 [static]
 

Definition at line 12 of file Horde.h.

Referenced by load_pix().

Picture Horde::dcels[DCELS]
 

Definition at line 16 of file Horde.h.

Referenced by Game::button_press(), and load_pix().

const int Horde::DCELS = 5 [static]
 

Definition at line 11 of file Horde.h.

Referenced by load_pix(), and Monster::update_dying().

int Horde::height
 

Definition at line 14 of file Horde.h.

Referenced by Monster::clicked(), Monster::get_border(), load_pix(), Monster::update_at(), and Monster::update_out().

Picture Horde::lcels[WCELS]
 

Definition at line 16 of file Horde.h.

Referenced by Monster::enter(), load_pix(), Monster::move(), and Monster::update_at().

Monster Horde::list[MAX_BILLS]
 

Definition at line 13 of file Horde.h.

Referenced by Game::button_press(), Game::button_release(), draw(), Monster::draw_stray(), Computer::find_stray(), launch(), setup(), Computer::setup(), update(), and Monster::update_at().

const int Horde::MAX_BILLS = 100 [static]
 

Definition at line 9 of file Horde.h.

Referenced by Game::button_press(), draw(), Computer::find_stray(), launch(), on(), setup(), and update().

int Horde::off_screen
 

Definition at line 15 of file Horde.h.

Referenced by Monster::enter(), launch(), setup(), Game::update(), Game::update_info(), and Monster::update_out().

int Horde::on_screen
 

Definition at line 15 of file Horde.h.

Referenced by Monster::enter(), setup(), Game::update(), Monster::update_dying(), Game::update_info(), and Monster::update_out().

Picture Horde::rcels[WCELS]
 

Definition at line 16 of file Horde.h.

Referenced by load_pix(), and Monster::move().

const int Horde::WCELS = 4 [static]
 

Definition at line 10 of file Horde.h.

Referenced by load_pix(), Monster::update_in(), and Monster::update_out().

int Horde::width
 

Definition at line 14 of file Horde.h.

Referenced by Monster::get_border(), load_pix(), Computer::setup(), and Monster::update_out().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:35:12 2005 for OPIE by  doxygen 1.4.2