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

Cannon Class Reference

#include </home/clem/local/src/opie/noncore/games/parashoot/cannon.h>

List of all members.

Public Types

enum  Direction { Left, Right, NoDir }

Signals

void score (int)

Public Member Functions

 Cannon (QCanvas *)
 ~Cannon ()
void pointCannon (Direction dir)
void setCoords ()
double shootAngle ()
void shoot ()
int rtti () const
int shotsFired ()
void reposition (void)

Protected Member Functions

void advance (int stage)

Private Attributes

QCanvasPixmapArray * cannonarray
int index
int cannonx
int cannony
int barrelxpos
int barrelypos
int moveDelay
Direction movedir
int shotsfired


Member Enumeration Documentation

enum Cannon::Direction
 

Enumeration values:
Left 
Right 
NoDir 

Definition at line 32 of file cannon.h.


Constructor & Destructor Documentation

Cannon::Cannon QCanvas *   ) 
 

Definition at line 26 of file cannon.cpp.

References cannonarray, cannonx, cannony, Opie::Core::OResource::findPixmap(), index, moveDelay, movedir, NoDir, QString::replace(), reposition(), shotsfired, and TRUE.

Cannon::~Cannon  ) 
 

Definition at line 130 of file cannon.cpp.


Member Function Documentation

void Cannon::advance int  stage  )  [protected]
 

Definition at line 48 of file cannon.cpp.

References index, Left, moveDelay, movedir, and Right.

Referenced by pointCannon().

void Cannon::pointCannon Direction  dir  ) 
 

Definition at line 67 of file cannon.cpp.

References advance(), moveDelay, and movedir.

Referenced by ParaShoot::keyReleaseEvent().

void Cannon::reposition void   ) 
 

Definition at line 139 of file cannon.cpp.

References barrelxpos, barrelypos, height, index, setCoords(), and width.

Referenced by Cannon().

int Cannon::rtti  )  const
 

Definition at line 134 of file cannon.cpp.

References cannon_rtti.

void Cannon::score int   )  [signal]
 

Referenced by shoot().

void Cannon::setCoords  ) 
 

Definition at line 75 of file cannon.cpp.

References barrelxpos, barrelypos, cannonx, cannony, and index.

Referenced by reposition(), and shoot().

void Cannon::shoot  ) 
 

Definition at line 122 of file cannon.cpp.

References cannonx, cannony, score(), setCoords(), shootAngle(), and shotsfired.

Referenced by ParaShoot::keyPressEvent().

double Cannon::shootAngle  ) 
 

Definition at line 98 of file cannon.cpp.

References index.

Referenced by shoot().

int Cannon::shotsFired  )  [inline]
 

Definition at line 40 of file cannon.h.

References shotsfired.

Referenced by ParaShoot::gameOver().


Member Data Documentation

int Cannon::barrelxpos [private]
 

Definition at line 55 of file cannon.h.

Referenced by reposition(), and setCoords().

int Cannon::barrelypos [private]
 

Definition at line 56 of file cannon.h.

Referenced by reposition(), and setCoords().

QCanvasPixmapArray* Cannon::cannonarray [private]
 

Definition at line 51 of file cannon.h.

Referenced by Cannon().

int Cannon::cannonx [private]
 

Definition at line 53 of file cannon.h.

Referenced by Cannon(), setCoords(), and shoot().

int Cannon::cannony [private]
 

Definition at line 54 of file cannon.h.

Referenced by Cannon(), setCoords(), and shoot().

int Cannon::index [private]
 

Definition at line 52 of file cannon.h.

Referenced by advance(), Cannon(), reposition(), setCoords(), and shootAngle().

int Cannon::moveDelay [private]
 

Definition at line 57 of file cannon.h.

Referenced by advance(), Cannon(), and pointCannon().

Direction Cannon::movedir [private]
 

Definition at line 58 of file cannon.h.

Referenced by advance(), Cannon(), and pointCannon().

int Cannon::shotsfired [private]
 

Definition at line 59 of file cannon.h.

Referenced by Cannon(), shoot(), and shotsFired().


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