

Definition at line 11 of file StatusDisplay.h.
Public Member Functions | |
| StatusDisplay () | |
| virtual | ~StatusDisplay () |
| void | displayStatus (Picture *new_picture, int time) |
| Dislay this picture given number of times. | |
| virtual void | drawOn (SDL_Surface *screen) |
|
|
Definition at line 14 of file StatusDisplay.cpp. 00015 {
00016 m_picture = NULL;
00017 m_time = 0;
00018 }
|
|
|
Definition at line 20 of file StatusDisplay.cpp. 00021 {
00022 if (m_picture) {
00023 delete m_picture;
00024 }
00025 }
|
|
||||||||||||
|
Dislay this picture given number of times.
Definition at line 31 of file StatusDisplay.cpp. 00032 {
00033 if (m_picture) {
00034 delete m_picture;
00035 }
00036 m_picture = new_picture;
00037 m_time = time;
00038 }
|
|
|
Implements Drawable. Definition at line 41 of file StatusDisplay.cpp. 00042 {
00043 if (m_time > 0) {
00044 m_time--;
00045 if (m_picture) {
00046 m_picture->drawOn(screen);
00047 }
00048 }
00049 }
|
1.4.2