# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CTileVegetableDesc Class Reference

A descriptor of vegetables for a tile. More...

#include <tile_vegetable_desc.h>

List of all members.

Public Methods

 CTileVegetableDesc ()
 Constructor. More...

void clear ()
 clear lists. More...

void build (const std::vector< CVegetable > &vegetables)
 Build the CTileVegetableDesc. More...

void registerToManager (CVegetableManager *vegetableManager)
 register all Vegetables in this to the manager. More...

void serial (NLMISC::IStream &f)
 serial. More...

const std::vector< CVegetable > & getVegetableList (uint distType) const
 get the vegetable list for a specific distanceType. More...

uint getVegetableSeed (uint distType) const
 get the vegetable seed for a specific distanceType. More...


Private Attributes

std::vector< CVegetable_VegetableList [NL3D_VEGETABLE_BLOCK_NUMDIST]
 List of vegetable to instanciate for a specific tile Grouped by distance Type. More...

uint32 _VegetableSeed [NL3D_VEGETABLE_BLOCK_NUMDIST]


Detailed Description

A descriptor of vegetables for a tile.

Author:
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 50 of file tile_vegetable_desc.h.


Constructor & Destructor Documentation

NL3D::CTileVegetableDesc::CTileVegetableDesc  
 

Constructor.

Definition at line 43 of file tile_vegetable_desc.cpp.


Member Function Documentation

void NL3D::CTileVegetableDesc::build const std::vector< CVegetable > &    vegetables
 

Build the CTileVegetableDesc.

Definition at line 57 of file tile_vegetable_desc.cpp.

References _VegetableList, _VegetableSeed, clear, min, and NL3D_VEGETABLE_BLOCK_NUMDIST.

void NL3D::CTileVegetableDesc::clear  
 

clear lists.

Definition at line 48 of file tile_vegetable_desc.cpp.

References _VegetableList, and NL3D_VEGETABLE_BLOCK_NUMDIST.

Referenced by build.

const std::vector< CVegetable > & NL3D::CTileVegetableDesc::getVegetableList uint    distType const
 

get the vegetable list for a specific distanceType.

Definition at line 112 of file tile_vegetable_desc.cpp.

References _VegetableList, NL3D_VEGETABLE_BLOCK_NUMDIST, and nlassert.

uint NL3D::CTileVegetableDesc::getVegetableSeed uint    distType const
 

get the vegetable seed for a specific distanceType.

Definition at line 120 of file tile_vegetable_desc.cpp.

References _VegetableSeed, NL3D_VEGETABLE_BLOCK_NUMDIST, and nlassert.

void NL3D::CTileVegetableDesc::registerToManager CVegetableManager   vegetableManager
 

register all Vegetables in this to the manager.

Definition at line 84 of file tile_vegetable_desc.cpp.

References _VegetableList, and NL3D_VEGETABLE_BLOCK_NUMDIST.

void NL3D::CTileVegetableDesc::serial NLMISC::IStream   f
 

serial.

Definition at line 99 of file tile_vegetable_desc.cpp.

References _VegetableList, _VegetableSeed, NL3D_VEGETABLE_BLOCK_NUMDIST, nlassert, NLMISC::IStream::serial, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion.


Member Data Documentation

std::vector<CVegetable> NL3D::CTileVegetableDesc::_VegetableList[NL3D_VEGETABLE_BLOCK_NUMDIST] [private]
 

List of vegetable to instanciate for a specific tile Grouped by distance Type.

Definition at line 81 of file tile_vegetable_desc.h.

Referenced by build, clear, getVegetableList, registerToManager, and serial.

uint32 NL3D::CTileVegetableDesc::_VegetableSeed[NL3D_VEGETABLE_BLOCK_NUMDIST] [private]
 

Definition at line 83 of file tile_vegetable_desc.h.

Referenced by build, getVegetableSeed, and serial.


The documentation for this class was generated from the following files: