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


Public Member Functions | |
| Terrain (int w, int h, bool drawTop=true, bool drawBottom=true) | |
| virtual | ~Terrain () |
| virtual void | initTerrain () |
| virtual void | moveTerrain (int amountToMove) |
| virtual bool | checkCollision (int x, int y, int h) |
| virtual void | drawTerrain (SDL_Surface *screen) |
| int | getMapTop (int pos) |
| int | getMapBottom (int pos) |
| int | getMaxHeight () |
| void | increaseMaxHeight (int amount) |
Public Attributes | |
| int | offset |
Protected Member Functions | |
| void | setPoint (int point) |
Protected Attributes | |
| int | sWidth |
| int | sHeight |
| int | drawTop |
| int | drawBottom |
| int | mapTop [MAPSIZE] |
| int | mapBottom [MAPSIZE] |
| int | maxTop |
| int | maxBottom |
| int | maxHeight |
| int | dir |
| int | speed |
| int | segSize |
| SDL_Surface * | terrainSurface |
| StarField * | stars |
|
||||||||||||||||||||
|
Definition at line 11 of file terrain.cpp. References initTerrain(), MAPSIZE, segSize, sHeight, speed, stars, sWidth, and terrainSurface. |
|
|
Definition at line 31 of file terrain.cpp. References stars, and terrainSurface. |
|
||||||||||||||||
|
Definition at line 208 of file terrain.cpp. References getpixel(), sHeight, and terrainSurface. Referenced by SFCaveGame::checkCollisions(), GatesGame::checkCollisions(), and FlyGame::checkCollisions(). |
|
|
Reimplemented in FlyTerrain. Definition at line 189 of file terrain.cpp. References StarField::draw(), offset, sHeight, stars, sWidth, and terrainSurface. Referenced by SFCaveGame::draw(), GatesGame::draw(), FlyGame::draw(), and FlyTerrain::drawTerrain(). |
|
|
Definition at line 19 of file terrain.h. References mapBottom. Referenced by SFCaveGame::addBlock(), GatesGame::addGate(), and FlyGame::update(). |
|
|
Definition at line 18 of file terrain.h. References mapTop. Referenced by SFCaveGame::addBlock(), and GatesGame::addGate(). |
|
|
Definition at line 20 of file terrain.h. References maxHeight. Referenced by SFCaveGame::update(). |
|
|
Definition at line 184 of file terrain.cpp. References maxHeight. Referenced by SFCaveGame::update(). |
|
|
Definition at line 37 of file terrain.cpp. References dir, drawBottom, drawTop, i, mapBottom, MAPSIZE, mapTop, maxHeight, nextInt, offset, segSize, setPoint(), sHeight, and terrainSurface. Referenced by Game::init(), and Terrain(). |
|
|
Definition at line 88 of file terrain.cpp. References drawBottom, drawTop, i, mapBottom, MAPSIZE, mapTop, StarField::move(), offset, segSize, setPoint(), sHeight, speed, stars, sWidth, and terrainSurface. Referenced by SFCaveGame::update(), GatesGame::update(), and FlyGame::update(). |
|
|
Reimplemented in FlyTerrain. Definition at line 164 of file terrain.cpp. References dir, mapBottom, mapTop, maxHeight, nextInt, and sHeight. Referenced by initTerrain(), and moveTerrain(). |
|
|
Definition at line 38 of file terrain.h. Referenced by initTerrain(), setPoint(), and FlyTerrain::setPoint(). |
|
|
Definition at line 30 of file terrain.h. Referenced by initTerrain(), and moveTerrain(). |
|
|
Definition at line 29 of file terrain.h. Referenced by initTerrain(), and moveTerrain(). |
|
|
Definition at line 33 of file terrain.h. Referenced by FlyTerrain::drawTerrain(), getMapBottom(), initTerrain(), moveTerrain(), setPoint(), and FlyTerrain::setPoint(). |
|
|
Definition at line 32 of file terrain.h. Referenced by getMapTop(), initTerrain(), moveTerrain(), and setPoint(). |
|
|
|
|
|
Definition at line 37 of file terrain.h. Referenced by getMaxHeight(), increaseMaxHeight(), initTerrain(), setPoint(), and FlyTerrain::setPoint(). |
|
|
|
|
|
Definition at line 23 of file terrain.h. Referenced by drawTerrain(), FlyTerrain::drawTerrain(), initTerrain(), and moveTerrain(). |
|
|
Definition at line 40 of file terrain.h. Referenced by FlyTerrain::drawTerrain(), initTerrain(), moveTerrain(), and Terrain(). |
|
|
Definition at line 27 of file terrain.h. Referenced by checkCollision(), drawTerrain(), initTerrain(), moveTerrain(), setPoint(), FlyTerrain::setPoint(), and Terrain(). |
|
|
Definition at line 39 of file terrain.h. Referenced by FlyTerrain::drawTerrain(), moveTerrain(), and Terrain(). |
|
|
Definition at line 43 of file terrain.h. Referenced by drawTerrain(), moveTerrain(), Terrain(), and ~Terrain(). |
|
|
Definition at line 26 of file terrain.h. Referenced by drawTerrain(), moveTerrain(), and Terrain(). |
|
|
Definition at line 42 of file terrain.h. Referenced by checkCollision(), drawTerrain(), initTerrain(), moveTerrain(), Terrain(), and ~Terrain(). |
1.4.2