#include <background.h>
Public Methods | |
Background (Graphics &) | |
Background (string, Graphics &) | |
~Background () | |
void | SetStatic (string) |
void | SetStatic (Surface *) |
bool | Draw () |
bool | Draw (Surface *) |
void | DrawRect (Rect &R) |
void | DrawRect (Surface *, Rect &R) |
bool | SetPosition (float, float) |
float | GetX () const |
float | GetY () const |
int | GetWidth () const |
int | GetHeight () const |
float | GetMaxX () const |
float | GetMaxY () const |
int | GetXint () const |
int | GetYint () const |
int | GetScreenWidth () const |
int | GetScreenHeight () const |
Private Methods | |
void | DrawRect (Surface *dest, Rect &R, Rect &S) |
Private Attributes | |
Graphics & | GD |
bool | staticBackground |
Surface * | staticImage |
bool | needRedraw |
float | xOffset |
float | yOffset |
float | xMax |
float | yMax |
|
Definition at line 9 of file background.cpp. References needRedraw, staticBackground, xOffset, and yOffset. |
|
Definition at line 19 of file background.cpp. References SetPosition(), and SetStatic(). |
|
Definition at line 26 of file background.cpp. References Graphics::freeImage(), and staticImage. |
|
Definition at line 80 of file background.cpp. References DrawRect(), _Surface::h, needRedraw, Rect, staticBackground, Util_BuildRect(), and _Surface::w. |
|
Definition at line 69 of file background.cpp. References DrawRect(), GD, Graphics::getHeight(), Graphics::getMainSurface(), Graphics::getWidth(), _Surface::h, Rect, staticImage, Util_BuildRect(), _Surface::w, xOffset, and yOffset. Referenced by Game::RenderScreen(). |
|
Definition at line 117 of file background.cpp. References Graphics::blit(), Rect, and staticImage. |
|
Definition at line 105 of file background.cpp. References DrawRect(), Rect, xOffset, and yOffset. |
|
Definition at line 98 of file background.cpp. References GD, Graphics::getMainSurface(), and Rect. Referenced by Draw(), DrawRect(), and Game::RenderScreen(). |
|
Definition at line 44 of file background.h. References staticImage, and _Surface::w. Referenced by Game::Game(). |
|
Definition at line 45 of file background.h. References _Surface::h, and staticImage. Referenced by Game::Game(). |
|
Definition at line 46 of file background.h. References xMax. Referenced by Game::Game(). |
|
Definition at line 50 of file background.h. References GD, and Graphics::getWidth(). Referenced by MainChar::Recenter(). |
|
Definition at line 49 of file background.h. References yOffset. Referenced by MainChar::Recenter(). |
|
Definition at line 43 of file background.h. References yOffset. Referenced by Game::Game(). |
|
Definition at line 41 of file background.h. Referenced by SubWorld::ScreenToSubWorld(), and SubWorld::SubWorldToScreen(). |
|
Definition at line 47 of file background.h. References yMax. |
|
Definition at line 42 of file background.h. References xOffset. Referenced by GameObject::Recenter(), SubWorld::ScreenToSubWorld(), and SubWorld::SubWorldToScreen(). |
|
Definition at line 48 of file background.h. References xOffset. |
|
Definition at line 123 of file background.cpp. References needRedraw, xMax, xOffset, yMax, and yOffset. Referenced by Background(), and Game::GameLoop(). |
|
Definition at line 39 of file background.cpp. References Graphics::blit(), Graphics::CreateSurfaceFrom(), GD, Graphics::getHeight(), Graphics::getWidth(), _Surface::h, needRedraw, staticBackground, staticImage, Graphics::TexturizeSurface(), _Surface::w, xMax, and yMax. |
|
Definition at line 34 of file background.cpp. References Graphics::loadImage(). Referenced by Background(). |
|
Definition at line 54 of file background.h. Referenced by Draw(), DrawRect(), GetScreenHeight(), and SetStatic(). |
|
Definition at line 64 of file background.h. Referenced by Background(), Draw(), SetPosition(), and SetStatic(). |
|
Definition at line 60 of file background.h. Referenced by Background(), Draw(), and SetStatic(). |
|
Definition at line 61 of file background.h. Referenced by Draw(), DrawRect(), GetHeight(), GetMaxX(), SetStatic(), and ~Background(). |
|
Definition at line 69 of file background.h. Referenced by GetMaxY(), SetPosition(), and SetStatic(). |
|
Definition at line 68 of file background.h. Referenced by Background(), Draw(), DrawRect(), GetY(), GetYint(), and SetPosition(). |
|
Definition at line 69 of file background.h. Referenced by GetXint(), SetPosition(), and SetStatic(). |
|
Definition at line 68 of file background.h. Referenced by Background(), Draw(), DrawRect(), GetScreenWidth(), GetWidth(), and SetPosition(). |