ScummVM API documentation
Bbvs::MinigameBbTennis Class Reference
Inheritance diagram for Bbvs::MinigameBbTennis:
Bbvs::Minigame

Classes

struct  Obj
 

Public Types

enum  { kMaxObjectsCount = 256 }
 
enum  { kGSTitleScreen = 0, kGSMainGame = 1, kGSStandaloneGame = 2, kGSScoreCountUp = 3 }
 

Public Member Functions

 MinigameBbTennis (BbvsEngine *vm)
 
bool run (bool fromMainGame) override
 
const ObjAnimationgetAnimation (int animIndex)
 
void buildDrawList (DrawList &drawList)
 
void buildDrawList0 (DrawList &drawList)
 
void buildDrawList1 (DrawList &drawList)
 
void buildDrawList2 (DrawList &drawList)
 
void drawSprites ()
 
void initObjs ()
 
ObjgetFreeObject ()
 
ObjfindTennisBall (int startObjIndex)
 
bool isHit (Obj *obj1, Obj *obj2)
 
void initObjects ()
 
void initObjects0 ()
 
void initObjects1 ()
 
void initObjects2 ()
 
void initVars ()
 
void initVars0 ()
 
void initVars1 ()
 
void initVars2 ()
 
bool updateStatus (int mouseX, int mouseY, uint mouseButtons)
 
bool updateStatus0 (int mouseX, int mouseY, uint mouseButtons)
 
bool updateStatus1 (int mouseX, int mouseY, uint mouseButtons)
 
bool updateStatus2 (int mouseX, int mouseY, uint mouseButtons)
 
void updateObjs ()
 
void updateTennisBall (int objIndex)
 
void updateSquirrel (int objIndex)
 
void updateTennisPlayer (int objIndex)
 
void updateThrower (int objIndex)
 
void updateNetPlayer (int objIndex)
 
void updateEnemyTennisBall (int objIndex)
 
void makeEnemyBall (int x, int y, int frameIndex)
 
void hitSomething ()
 
void update ()
 
void loadSounds ()
 
- Public Member Functions inherited from Bbvs::Minigame
 Minigame (BbvsEngine *vm)
 

Public Attributes

Obj _objects [kMaxObjectsCount]
 
int _numHearts
 
int _squirrelDelay
 
int _tennisPlayerDelay
 
int _throwerDelay
 
int _netPlayerDelay
 
int _playerDecrease
 
int _delayDecreaseTimer
 
int _numBalls
 
int _newBallTimer
 
int _initBallTimer
 
int _maxBalls
 
int _rapidFireBallsCount
 
int _score
 
int _hiScore
 
int _hitMissRatio
 
bool _allHeartsGone
 
bool _playedThisIsTheCoolest
 
bool _startSoundPlayed
 
bool _endSoundPlaying
 

Additional Inherited Members

- Protected Member Functions inherited from Bbvs::Minigame
int drawNumber (DrawList &drawList, int number, int x, int y)
 
void playSound (uint index, bool loop=false)
 
void stopSound (uint index)
 
bool isSoundPlaying (uint index)
 
bool isAnySoundPlaying (const uint *indices, uint count)
 
void saveHiscore (int minigameNum, int score)
 
int loadHiscore (int minigameNum)
 
- Protected Attributes inherited from Bbvs::Minigame
BbvsEngine_vm
 
SpriteModule_spriteModule
 
int _gameState
 
int _gameTicks
 
bool _gameResult
 
bool _gameDone
 
bool _fromMainGame
 
int _hiScoreTable [kMinigameCount]
 
int _backgroundSpriteIndex
 
int _titleScreenSpriteIndex
 
const ObjAnimation_numbersAnim
 

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