|
|
The Nationality class stores all what represents a country identity : name, flag, etc.
| enum TDir {state, right, left, up, down, N, S, E, O, NO, SO, SE, NE} | TDir |
| BackGnd (QCanvas *canvas, DecoratedGameFrame *aFrame)
| BackGnd |
The QCanvas is the canvas where all the sprites are set up. aFrame is the view used to display the background.
| ~BackGnd ()
| ~BackGnd |
| void scrollUp (const int step = DefaultScrollStep)
| scrollUp |
These four scroll methods allow to easilly scroll the background on its canvas in a simple and transparent manner
| void scrollDown (const int step = DefaultScrollStep)
| scrollDown |
| void scrollLeft (const int step = DefaultScrollStep)
| scrollLeft |
| void scrollRight (const int step = DefaultScrollStep)
| scrollRight |
| static int DefaultScrollStep | DefaultScrollStep |
[private]
| DecoratedGameFrame * frame | frame |
[private]
| void scroll (TDir dir, int step)
| scroll |
[private]
The scroll method is used by the scrollX public methods to call the native scrollBy methods in the good direction. Its arguments are a named direction and a number of pixels step