Main Page   Class Hierarchy   Compound List   File List   Compound Members  

world Class Reference

A class that holds a whole planet. More...

#include <world.h>

List of all members.

Public Methods

 world (char *worldFile)
 Generates a planet from an OFF file. More...

 ~world ()
portionListgetFirstPortion ()
void update (long int updateStamp)
 Makes the whole planet go to the next iteration step. More...


Detailed Description

A class that holds a whole planet.


Constructor & Destructor Documentation

world::world char *    worldFile
 

Generates a planet from an OFF file.

Parameters:
worldFile  OFF datas describing the planet


Member Function Documentation

portionList * world::getFirstPortion  
 

Returns:
A pointer on the first element of the portion list

void world::update long int    updateStamp
 

Makes the whole planet go to the next iteration step.

Parameters:
updateStamp  Makes it possible to know if an object (may it be a plant, an ant or a land) has already been updated or not. Each step has its index. Before calling this method, you should increment the updateStamp because if you don't, you may observe strange ant behaviour.


The documentation for this class was generated from the following files:
Generated on Mon Jun 14 09:29:38 2004 by doxygen1.2.15