duncan
Mom and Dad were wrong!
Public Member Functions
client::StartState Class Reference

#include <startstate.h>

Inheritance diagram for client::StartState:
Inheritance graph
[legend]
Collaboration diagram for client::StartState:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StartState ()
std::tr1::shared_ptr< Statechild ()
void resize (unsigned int, unsigned int)
void on_push ()
void on_active ()
State::Action update ()
void draw ()

Detailed Description

Base state from which the game runs.

Get the player and server details.

Author:
Harry Slatyer

see LICENSE


Constructor & Destructor Documentation

StartState::StartState ( )

Initialise members.


Member Function Documentation

std::tr1::shared_ptr< State > StartState::child ( ) [virtual]

Get the child state (to be pushed on top of this).

Returns:
child state

Reimplemented from client::State.

void StartState::draw ( ) [virtual]

Draw a friendly message prompting the user for her name, along with the current name.

Reimplemented from client::State.

void StartState::on_active ( ) [virtual]

Set action to default.

Reimplemented from client::State.

void StartState::on_push ( ) [virtual]

Set the action to default.

Reimplemented from client::State.

void StartState::resize ( unsigned int  r,
unsigned int  c 
) [virtual]

Handle a window resize.

Parameters:
rnumber of rows
cnumber of columns

Reimplemented from client::State.

State::Action StartState::update ( ) [virtual]

Update this state.

Returns:
action to be performed on this state

Reimplemented from client::State.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations