Object Class Reference

This class represents an Object that can be placed on a field. More...

#include <Object.h>

Inherits Texture.

Inherited by Button, Field, and Unit.

Inheritance diagram for Object:

Inheritance graph
[legend]
Collaboration diagram for Object:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Object ()
 Standard constructor.
virtual ~Object ()
 Standard destructor.
virtual int render (Vector3d p_pos, double p_deltasize=1.0)
 Renders the Object at the given position.

Public Attributes

double size
 Holds the size of the Object.

Detailed Description

This class represents an Object that can be placed on a field.

Definition at line 31 of file Object.h.


Constructor & Destructor Documentation

Object::Object (  ) 

Standard constructor.

Definition at line 28 of file Object.cpp.

References size.

Object::~Object (  )  [virtual]

Standard destructor.

Definition at line 33 of file Object.cpp.


Member Function Documentation

int Object::render ( Vector3d  p_pos,
double  p_deltasize = 1.0 
) [virtual]

Renders the Object at the given position.

Parameters:
p_pos Position on the screen where the object should be rendered.
p_deltasize Size multiplier. Default = 1.0
Returns:
0 for success.

Reimplemented in Field.

Definition at line 38 of file Object.cpp.

References Texture::render(), size, Vector3d::x, Vector3d::y, and Vector3d::z.

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

Here is the call graph for this function:


Member Data Documentation

double Object::size

Holds the size of the Object.

Definition at line 56 of file Object.h.

Referenced by Field::Field(), Unit::load(), Interface::load(), Object(), render(), Interface::render(), and Unit::settle().


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