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

Fruit Class Reference

#include </home/clem/local/src/opie/noncore/games/kpacman/fruit.h>

Collaboration diagram for Fruit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Fruit (Board *b)
void setEaten (int duration)
void setLevel (int level, int wDuration, int fDuration, int ticks=-1)
void setMaxPixmaps (int max)
void setMovement (int entry, int tunnel, int iq)
void setPosition (int pos)
void setDirection (int dir)
fruitState state ()
int position ()
int direction ()
bool move (bool activate=FALSE)
int pix ()

Private Attributes

Boardboard
int IQ
fruitState actualState
int pauseDuration
int pause
int timeLeft
int waitDuration
int fruitDuration
int actualDirection
int actualPosition
int lastPosition
int actualLevel
int actualPix
int maxPixmaps
int entryPosition
int homePosition
int tunnelPosition

Constructor & Destructor Documentation

Fruit::Fruit Board b  ) 
 

Definition at line 5 of file fruit.cpp.

References board, maxPixmaps, and setLevel().


Member Function Documentation

int Fruit::direction  ) 
 

Definition at line 76 of file fruit.cpp.

References actualDirection.

bool Fruit::move bool  activate = FALSE  ) 
 

Definition at line 81 of file fruit.cpp.

References active, actualDirection, actualPosition, actualState, board, Board::closeup(), d, empty, entryPosition, FALSE, fruitDuration, fruithome, homePosition, inactive, IQ, Board::isJump(), Board::isTunnel(), Board::isWay(), lastPosition, maxPixmaps, Board::move(), OUT, pause, pauseDuration, Board::position(), setMaxPixmaps(), setPosition(), timeLeft, TRUE, tunnel, tunnelPosition, Board::tunnels(), Board::turn(), waitDuration, and X.

Referenced by Referee::keyPressEvent(), and Referee::timerEvent().

int Fruit::pix  ) 
 

Definition at line 170 of file fruit.cpp.

References actualPix, actualPosition, actualState, inactive, and OUT.

Referenced by Referee::paintEvent(), Referee::repaintFigures(), and Referee::timerEvent().

int Fruit::position  ) 
 

Definition at line 71 of file fruit.cpp.

References actualPosition.

Referenced by Referee::paintEvent(), Referee::repaintFigures(), and Referee::timerEvent().

void Fruit::setDirection int  dir  ) 
 

Definition at line 61 of file fruit.cpp.

References actualDirection.

void Fruit::setEaten int  duration  ) 
 

Definition at line 12 of file fruit.cpp.

References actualDirection, actualState, eaten, timeLeft, and X.

Referenced by Referee::timerEvent().

void Fruit::setLevel int  level,
int  wDuration,
int  fDuration,
int  ticks = -1
 

Definition at line 19 of file fruit.cpp.

References actualDirection, actualLevel, actualState, fruitDuration, inactive, lastPosition, maxPixmaps, OUT, pause, pauseDuration, setMaxPixmaps(), setMovement(), setPosition(), timeLeft, waitDuration, and X.

Referenced by Fruit(), and Referee::initFruit().

void Fruit::setMaxPixmaps int  max  ) 
 

Definition at line 35 of file fruit.cpp.

References actualLevel, actualPix, and maxPixmaps.

Referenced by Referee::initFruit(), move(), setLevel(), and Referee::setScheme().

void Fruit::setMovement int  entry,
int  tunnel,
int  iq
 

Definition at line 46 of file fruit.cpp.

References board, entryPosition, fruithome, homePosition, IQ, Board::position(), and tunnelPosition.

Referenced by Referee::initFruit(), and setLevel().

void Fruit::setPosition int  pos  ) 
 

Definition at line 54 of file fruit.cpp.

References actualPosition, board, fruit, lastPosition, Board::reset(), and Board::set().

Referenced by move(), and setLevel().

fruitState Fruit::state  ) 
 

Definition at line 66 of file fruit.cpp.

References actualState.

Referenced by Referee::paintEvent(), Referee::repaintFigures(), and Referee::timerEvent().


Member Data Documentation

int Fruit::actualDirection [private]
 

Definition at line 40 of file fruit.h.

Referenced by direction(), move(), setDirection(), setEaten(), and setLevel().

int Fruit::actualLevel [private]
 

Definition at line 43 of file fruit.h.

Referenced by setLevel(), and setMaxPixmaps().

int Fruit::actualPix [private]
 

Definition at line 44 of file fruit.h.

Referenced by pix(), and setMaxPixmaps().

int Fruit::actualPosition [private]
 

Definition at line 41 of file fruit.h.

Referenced by move(), pix(), position(), and setPosition().

fruitState Fruit::actualState [private]
 

Definition at line 30 of file fruit.h.

Referenced by move(), pix(), setEaten(), setLevel(), and state().

Board* Fruit::board [private]
 

Definition at line 26 of file fruit.h.

Referenced by Fruit(), move(), setMovement(), and setPosition().

int Fruit::entryPosition [private]
 

Definition at line 47 of file fruit.h.

Referenced by move(), and setMovement().

int Fruit::fruitDuration [private]
 

Definition at line 38 of file fruit.h.

Referenced by move(), and setLevel().

int Fruit::homePosition [private]
 

Definition at line 48 of file fruit.h.

Referenced by move(), and setMovement().

int Fruit::IQ [private]
 

Definition at line 28 of file fruit.h.

Referenced by move(), and setMovement().

int Fruit::lastPosition [private]
 

Definition at line 42 of file fruit.h.

Referenced by move(), setLevel(), and setPosition().

int Fruit::maxPixmaps [private]
 

Definition at line 45 of file fruit.h.

Referenced by Fruit(), move(), setLevel(), and setMaxPixmaps().

int Fruit::pause [private]
 

Definition at line 33 of file fruit.h.

Referenced by move(), and setLevel().

int Fruit::pauseDuration [private]
 

Definition at line 32 of file fruit.h.

Referenced by move(), and setLevel().

int Fruit::timeLeft [private]
 

Definition at line 35 of file fruit.h.

Referenced by move(), setEaten(), and setLevel().

int Fruit::tunnelPosition [private]
 

Definition at line 49 of file fruit.h.

Referenced by move(), and setMovement().

int Fruit::waitDuration [private]
 

Definition at line 37 of file fruit.h.

Referenced by move(), and setLevel().


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