News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::MenuUserInterface class Reference

Zap::MenuUserInterface Class Reference

#include <UIMenus.h>

Inheritance diagram for Zap::MenuUserInterface:

Zap::UserInterface Zap::AdminMenuUserInterface Zap::EditorMenuUserInterface Zap::GameMenuUserInterface Zap::LevelMenuUserInterface Zap::MainMenuUserInterface Zap::OptionsMenuUserInterface Zap::PlayerMenuUserInterface

Public Member Functions

 MenuUserInterface ()
void render ()
void onSpecialKeyDown (U32 key)
void onKeyDown (U32 key)
void onControllerButtonDown (U32 buttonIndex)
void onActivate ()
virtual void onEscape ()
virtual void processSelection (U32 index)=0

Data Fields

Vector< MenuItemmenuItems
const char * menuTitle
const char * menuSubTitle
const char * menuFooter
S32 selectionIndex

Constructor & Destructor Documentation

Zap::MenuUserInterface::MenuUserInterface  ) 
 


Member Function Documentation

void Zap::MenuUserInterface::render  )  [virtual]
 

Reimplemented from Zap::UserInterface.

Reimplemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, and Zap::PlayerMenuUserInterface.

void Zap::MenuUserInterface::onSpecialKeyDown U32  key  )  [virtual]
 

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onKeyDown U32  key  )  [virtual]
 

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onControllerButtonDown U32  buttonIndex  )  [virtual]
 

Reimplemented from Zap::UserInterface.

void Zap::MenuUserInterface::onActivate  )  [inline, virtual]
 

Reimplemented from Zap::UserInterface.

Reimplemented in Zap::EditorMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, and Zap::AdminMenuUserInterface.

virtual void Zap::MenuUserInterface::onEscape  )  [virtual]
 

Reimplemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, Zap::AdminMenuUserInterface, and Zap::PlayerMenuUserInterface.

virtual void Zap::MenuUserInterface::processSelection U32  index  )  [pure virtual]
 

Implemented in Zap::EditorMenuUserInterface, Zap::MainMenuUserInterface, Zap::OptionsMenuUserInterface, Zap::GameMenuUserInterface, Zap::LevelMenuUserInterface, Zap::AdminMenuUserInterface, and Zap::PlayerMenuUserInterface.


Field Documentation

Vector<MenuItem> Zap::MenuUserInterface::menuItems
 

const char* Zap::MenuUserInterface::menuTitle
 

const char* Zap::MenuUserInterface::menuSubTitle
 

const char* Zap::MenuUserInterface::menuFooter
 

S32 Zap::MenuUserInterface::selectionIndex