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

Computer Class Reference

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

List of all members.

Public Member Functions

int setup (int i)
void draw ()
int find_stray ()
int oncomputer (int locx, int locy)
int compatible (int system)
int determineOS ()

Public Attributes

int type
int os
int x
int y
int busy

Static Public Attributes

static const int TOASTER = 0
static const int PC = 5
static const int OFFSET = 4
static const int BORDER = 50


Member Function Documentation

int Computer::compatible int  system  ) 
 

Definition at line 41 of file Computer.cc.

References OS, Library::PC, PC, and type.

Referenced by Game::button_release().

int Computer::determineOS  ) 
 

Definition at line 45 of file Computer.cc.

References game, Library::NUM_OS, OS, Library::PC, PC, Game::RAND(), and type.

Referenced by setup().

void Computer::draw  ) 
 

Definition at line 50 of file Computer.cc.

References UI::draw(), net, Library::OFF, OFFSET, Library::os, OS, os, Network::pictures, type, ui, x, and y.

Referenced by Network::draw().

int Computer::find_stray  ) 
 

Definition at line 26 of file Computer.cc.

References bill, game, Library::height, Network::height, i, Game::INTERSECT(), Horde::list, Horde::MAX_BILLS, net, OS, Monster::state, Monster::STRAY, Library::width, Network::width, Monster::x, x, Monster::y, and y.

Referenced by Monster::update_at().

int Computer::oncomputer int  locx,
int  locy
 

Definition at line 37 of file Computer.cc.

References abs, Network::height, net, Network::width, x, and y.

Referenced by Game::button_release().

int Computer::setup int  i  ) 
 

Definition at line 3 of file Computer.cc.

References bill, BORDER, busy, Network::computers, determineOS(), game, Network::height, Game::INTERSECT(), Horde::list, net, Network::NUM_SYS, os, Game::RAND(), Game::scrheight, Game::scrwidth, type, Horde::width, Network::width, x, Monster::XOFFSET, and y.

Referenced by Network::setup().


Member Data Documentation

const int Computer::BORDER = 50 [static]
 

Definition at line 19 of file Computer.h.

Referenced by setup().

int Computer::busy
 

Definition at line 9 of file Computer.h.

Referenced by Game::button_press(), setup(), Cable::update(), Monster::update_at(), and Monster::update_in().

const int Computer::OFFSET = 4 [static]
 

Definition at line 18 of file Computer.h.

Referenced by draw().

int Computer::os
 

Definition at line 7 of file Computer.h.

Referenced by Game::button_release(), draw(), setup(), Network::toasters(), Cable::update(), and Monster::update_at().

const int Computer::PC = 5 [static]
 

Definition at line 17 of file Computer.h.

Referenced by compatible(), and determineOS().

const int Computer::TOASTER = 0 [static]
 

Definition at line 16 of file Computer.h.

Referenced by Network::toasters().

int Computer::type
 

Definition at line 6 of file Computer.h.

Referenced by compatible(), determineOS(), draw(), setup(), and Network::toasters().

int Computer::x
 

Definition at line 8 of file Computer.h.

Referenced by draw(), Monster::enter(), find_stray(), oncomputer(), setup(), Cable::setup(), and Monster::update_in().

int Computer::y
 

Definition at line 8 of file Computer.h.

Referenced by draw(), Monster::enter(), find_stray(), oncomputer(), setup(), Cable::setup(), and Monster::update_in().


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