Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

IdCollidable Class Reference

#include <collidable.h>

Inherits Collidable.

Inherited by Bolt, and Spectre.

Inheritance diagram for IdCollidable:

Inheritance graph
[legend]
Collaboration diagram for IdCollidable:

Collaboration graph
[legend]
List of all members.

Public Methods

 IdCollidable ()
 The default constructor. More...

 IdCollidable (std::string filename, const Matrix &mat, int newId=-1)
 The constructor for Collidable that takes in a filename. More...

void setId (int newId)
int getId () const

Private Attributes

int id

Constructor & Destructor Documentation

IdCollidable::IdCollidable   [inline]
 

The default constructor.

00039 : id(-1), Collidable () {}

IdCollidable::IdCollidable std::string    filename,
const Matrix   mat,
int    newId = -1
[inline]
 

The constructor for Collidable that takes in a filename.

00042             : Collidable (filename, mat) , id (newId) {
00043     }


Member Function Documentation

int IdCollidable::getId   const [inline]
 

00047                        {
00048         return id;
00049     }

void IdCollidable::setId int    newId [inline]
 

00044                            {
00045         id=newId;
00046     }


Member Data Documentation

int IdCollidable::id [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Jul 7 21:13:52 2003 for Ethereal by doxygen1.2.15