Main Page | Class List | File List | Class Members | File Members

tile Class Reference

holds the data for a tile More...

#include <world.h>

Collaboration diagram for tile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 tile ()
 tile (float cost, energy e)
 ~tile ()
float getCost ()

Protected Attributes

entitym_pEntity
 the entity currently in the tile

float m_cost
 the height of the tile

energy m_energy
 the tile's energy pool


Detailed Description

holds the data for a tile

Definition at line 48 of file world.h.


Constructor & Destructor Documentation

tile::tile  )  [inline]
 

Definition at line 53 of file world.h.

References m_cost, m_energy, and m_pEntity.

tile::tile float  cost,
energy  e
 

Definition at line 32 of file world.cpp.

tile::~tile  )  [inline]
 

Definition at line 58 of file world.h.


Member Function Documentation

float tile::getCost  )  [inline]
 

Definition at line 60 of file world.h.

References m_cost.


Member Data Documentation

float tile::m_cost [protected]
 

the height of the tile

Definition at line 66 of file world.h.

Referenced by getCost(), world::moveEntity(), tile(), and world::transferMemory().

energy tile::m_energy [protected]
 

the tile's energy pool

Definition at line 68 of file world.h.

Referenced by world::absorbEnergy(), world::kill(), tile(), and world::transferEnergy().

entity* tile::m_pEntity [protected]
 

the entity currently in the tile

Definition at line 64 of file world.h.

Referenced by world::giveMemory(), world::kill(), world::moveEntity(), world::takeMemory(), tile(), and world::transferEnergy().


The documentation for this class was generated from the following files:
Generated on Sun Mar 6 22:11:29 2005 for experiment03 by doxygen 1.3.7