Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

StatusDisplay Class Reference

Inheritance diagram for StatusDisplay:

Inheritance graph
[legend]
Collaboration diagram for StatusDisplay:

Collaboration graph
[legend]

Detailed Description

Show status change.

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)


Constructor & Destructor Documentation

StatusDisplay::StatusDisplay  ) 
 

Definition at line 14 of file StatusDisplay.cpp.

00015 {
00016     m_picture = NULL;
00017     m_time = 0;
00018 }

StatusDisplay::~StatusDisplay  )  [virtual]
 

Definition at line 20 of file StatusDisplay.cpp.

00021 {
00022     if (m_picture) {
00023         delete m_picture;
00024     }
00025 }


Member Function Documentation

void StatusDisplay::displayStatus Picture new_picture,
int  time
 

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 }

void StatusDisplay::drawOn SDL_Surface *  screen  )  [virtual]
 

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 }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:56:58 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2