#include </home/clem/local/src/opie/noncore/games/sfcave-sdl/sfcave_game.h>
Inheritance diagram for SFCaveGame:


Public Member Functions | |
| SFCaveGame (SFCave *p, int w, int h, int diff) | |
| ~SFCaveGame () | |
| void | init () |
| void | update (int state) |
| void | draw (SDL_Surface *screen) |
Private Member Functions | |
| void | addBlock () |
| void | moveBlocks (int amountToMove) |
| void | drawBlocks (SDL_Surface *screen) |
| bool | checkCollisions () |
Private Attributes | |
| int | blockDistance |
| int | blockHeight |
| int | blockWidth |
| int | blockUpdateRate |
| Rect | blocks [BLOCKSIZE] |
|
||||||||||||||||||||
|
Definition at line 7 of file sfcave_game.cpp. References blockUpdateRate, Game::difficulty, Game::gameName, Game::highScore, MENU_DIFFICULTY_EASY, Player, Game::player, and Game::terrain. |
|
|
Definition at line 19 of file sfcave_game.cpp. |
|
|
Definition at line 124 of file sfcave_game.cpp. References blockHeight, blocks, BLOCKSIZE, blockWidth, Terrain::getMapBottom(), Terrain::getMapTop(), i, MAPSIZE, nextInt, Rect::setRect(), Game::sWidth, Game::terrain, Opie::MM::x, and Opie::MM::y. Referenced by update(). |
|
|
Definition at line 166 of file sfcave_game.cpp. References blocks, BLOCKSIZE, Terrain::checkCollision(), Player::getHeight(), Player::getPos(), Player::getX(), Player::getY(), i, Game::player, Game::terrain, and Opie::MM::y. Referenced by update(). |
|
|
Reimplemented from Game. Definition at line 98 of file sfcave_game.cpp. References Game::draw(), Player::draw(), drawBlocks(), Terrain::drawTerrain(), SFCave::getState(), Game::parent, Game::player, Game::preDraw(), STATE_PLAYING, and Game::terrain. |
|
|
Definition at line 154 of file sfcave_game.cpp. References blocks, BLOCKSIZE, Rect::getRect(), i, and Opie::MM::y. Referenced by draw(). |
|
|
Reimplemented from Game. Definition at line 23 of file sfcave_game.cpp. References blockDistance, blockHeight, blocks, BLOCKSIZE, blockWidth, Game::difficulty, i, Game::init(), SFCave::loadDoubleSetting(), SFCave::loadIntSetting(), MENU_DIFFICULTY_CUSTOM, MENU_DIFFICULTY_EASY, MENU_DIFFICULTY_HARD, MENU_DIFFICULTY_NORMAL, Game::parent, Game::player, Player::setMovementInfo(), and Rect::y(). |
|
|
Definition at line 141 of file sfcave_game.cpp. References blocks, BLOCKSIZE, i, Rect::moveBy(), Opie::MM::x, Rect::y(), and Opie::MM::y. Referenced by update(). |
|
|
Reimplemented from Game. Definition at line 61 of file sfcave_game.cpp. References addBlock(), blockDistance, blockHeight, SFCave::changeState(), checkCollisions(), Terrain::getMaxHeight(), Terrain::increaseMaxHeight(), Player::move(), moveBlocks(), Terrain::moveTerrain(), Game::nrFrames, Game::parent, Game::player, Game::press, Game::score, Game::sHeight, STATE_CRASHING, STATE_PLAYING, Game::terrain, and Game::update(). |
|
|
Definition at line 25 of file sfcave_game.h. |
|
|
Definition at line 26 of file sfcave_game.h. Referenced by addBlock(), init(), and update(). |
|
|
Definition at line 30 of file sfcave_game.h. Referenced by addBlock(), checkCollisions(), drawBlocks(), init(), and moveBlocks(). |
|
|
Definition at line 28 of file sfcave_game.h. Referenced by SFCaveGame(). |
|
|
Definition at line 27 of file sfcave_game.h. Referenced by addBlock(), and init(). |
1.4.2