Button Class Reference

#include <Button.h>

Inherits Object.

Inheritance diagram for Button:

Inheritance graph
[legend]
Collaboration diagram for Button:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Button (Interface *p_interface)
 Standard constructor.
virtual ~Button ()
 Standard destructor.
int render ()
 Renders the Interface.
virtual ButtongetButton ()
 Returns a pointer to itself.

Public Attributes

std::string label
 Holds the label of the button.
Vector3d pos
 Holds the position on the interface.
Interfacem_interface
 Holds the instance of the interface.
int val
 Holds the bonus value to apply.

Detailed Description

Definition at line 28 of file Button.h.


Constructor & Destructor Documentation

Button::Button ( Interface p_interface  ) 

Standard constructor.

Definition at line 24 of file Button.cpp.

References m_interface, and val.

Button::~Button (  )  [virtual]

Standard destructor.

Definition at line 30 of file Button.cpp.


Member Function Documentation

int Button::render (  )  [virtual]

Renders the Interface.

Reimplemented from Texture.

Definition at line 34 of file Button.cpp.

References pos, and Texture::render().

Here is the call graph for this function:

Button * Button::getButton (  )  [virtual]

Returns a pointer to itself.

Returns:
This pointer.

Reimplemented from Texture.

Definition at line 43 of file Button.cpp.


Member Data Documentation

std::string Button::label

Holds the label of the button.

Definition at line 50 of file Button.h.

Referenced by Interface::load(), and FunctionHandler::select().

Vector3d Button::pos

Holds the position on the interface.

Definition at line 55 of file Button.h.

Referenced by Interface::load(), and render().

Interface* Button::m_interface

Holds the instance of the interface.

Definition at line 60 of file Button.h.

Referenced by Button().

int Button::val

Holds the bonus value to apply.

Definition at line 65 of file Button.h.

Referenced by Button(), Interface::load(), and FunctionHandler::selectBonus().


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 22:02:22 2007 for C0re by  doxygen 1.5.2