Logo Search packages:      
Sourcecode: ballz version File versions  Download package

Public Types | Public Member Functions | Private Member Functions | Private Attributes

Ball Class Reference

List of all members.

Public Types

enum  State { AIR_DOWN, AIR_UP, ROLL, DEAD }

Public Member Functions

 Ball (int x, int y)
void draw (BITMAP *dest, int scroll)
void freeze (int time)
int getCenterX ()
int getCenterY ()
int getMetalBarPosition ()
State getState ()
bool isMetal ()
void kill ()
void logic (TileMap *tileMap)
void setImortal (bool imortal)
void setPosition (int x, int y)

Private Member Functions

void drawBall (BITMAP *dest, int x, int y, int scroll)
void logicWater (TileMap *tileMap, bool keyUp)
void setState (State newState)

Private Attributes

int blinkCounter
SAMPLE * bounceSample
int bounceY
bool bouncing
int dx
int dy
int freezeTime
SAMPLE * jumpSample
bool lastKeyCtrl
bool lastKeyUp
int metalBallCounter
bool mImortal
SAMPLE * rushSample
int speedCooldown
BITMAP * sprite
BITMAP * spriteBlink
BITMAP * spriteBlinkCoolDown
BITMAP * spriteBlinkIron
BITMAP * spriteCoolDown
BITMAP * spriteIron
State state
bool upHeldDuringJump
int x
int y

Detailed Description

Definition at line 38 of file ball.hpp.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index