ComposedObject Class Reference

An object that is composed of several other objects. More...

#include <ComposedObject.h>

Inheritance diagram for ComposedObject:

RawObject List of all members.

Public Member Functions

 ComposedObject ()
 ~ComposedObject ()
void AddObject (RawObject *object)
void Draw ()

Private Types

typedef ComposedObject::ComponentElem Components

Private Attributes

Componentsfirst_component

Classes

struct  ComponentElem

Detailed Description

An object that is composed of several other objects.

This is an object which may consist of several parts. These parts can be added to the object and are drawn in the same order as they were added to this object.

Definition at line 18 of file ComposedObject.h.


Member Typedef Documentation

typedef struct ComposedObject::ComponentElem ComposedObject::Components [private]
 

Structure used to store the parts of this object.


Constructor & Destructor Documentation

ComposedObject::ComposedObject  ) 
 

Constructor: Bring the object into a consistent state.

Definition at line 3 of file ComposedObject.cpp.

ComposedObject::~ComposedObject  ) 
 

Destructor.

Definition at line 8 of file ComposedObject.cpp.


Member Function Documentation

void ComposedObject::AddObject RawObject object  ) 
 

Adds a object.

Parameters:
object The object which shall be part of this composed object.

Definition at line 13 of file ComposedObject.cpp.

void ComposedObject::Draw  )  [virtual]
 

Implementation of the Draw routine. Draws all the objects that were added to this object.

Reimplemented from RawObject.

Definition at line 35 of file ComposedObject.cpp.


Member Data Documentation

Components* ComposedObject::first_component [private]
 

List containing all the parts of this object

Definition at line 55 of file ComposedObject.h.


Generated on Sun Jul 2 13:20:40 2006 for Demo by  doxygen 1.4.6-NO