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

PosterState Class Reference

Inheritance diagram for PosterState:

Inheritance graph
[legend]
Collaboration diagram for PosterState:

Collaboration graph
[legend]

Detailed Description

Static picture.

Definition at line 12 of file PosterState.h.

Public Member Functions

 PosterState (const Path &picture)
virtual ~PosterState ()
virtual const char * getName () const

Protected Member Functions

virtual void own_initState ()
virtual void own_updateState ()
virtual void own_pauseState ()
virtual void own_resumeState ()
virtual void own_cleanState ()

Protected Attributes

Picturem_bg


Constructor & Destructor Documentation

PosterState::PosterState const Path picture  ) 
 

Definition at line 19 of file PosterState.cpp.

00020 {
00021     m_bg = new Picture(picture, V2(0, 0));
00022     takeHandler(new DemoInput(this));
00023     registerDrawable(m_bg);
00024 }

PosterState::~PosterState  )  [virtual]
 

Definition at line 26 of file PosterState.cpp.

00027 {
00028     delete m_bg;
00029 }


Member Function Documentation

virtual const char* PosterState::getName  )  const [inline, virtual]
 

Implements INamed.

Definition at line 24 of file PosterState.h.

00024 { return "state_poster"; };

virtual void PosterState::own_cleanState  )  [inline, protected, virtual]
 

Implements GameState.

Definition at line 20 of file PosterState.h.

00020 {}

void PosterState::own_initState  )  [protected, virtual]
 

Implements GameState.

Reimplemented in PosterScroller.

Definition at line 32 of file PosterState.cpp.

00033 {
00034     OptionAgent *options = OptionAgent::agent();
00035     options->setParam("screen_width", m_bg->getW());
00036     options->setParam("screen_height", m_bg->getH());
00037     VideoAgent::agent()->initVideoMode();
00038 }

virtual void PosterState::own_pauseState  )  [inline, protected, virtual]
 

Implements GameState.

Definition at line 18 of file PosterState.h.

00018 {}

virtual void PosterState::own_resumeState  )  [inline, protected, virtual]
 

Implements GameState.

Definition at line 19 of file PosterState.h.

00019 {}

virtual void PosterState::own_updateState  )  [inline, protected, virtual]
 

Implements GameState.

Reimplemented in PosterScroller.

Definition at line 17 of file PosterState.h.

00017 {}


Field Documentation

Picture* PosterState::m_bg [protected]
 

Definition at line 14 of file PosterState.h.


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