NL3D::CTileLand Class Reference

#include <tile_bank.h>


Detailed Description

Set of tiles for a land
Author:
Cyril Corvazier

Nevrax France

Date:
2000

Definition at line 164 of file tile_bank.h.

Public Member Functions

void addTileSet (const std::string &name)
const std::string & getName () const
bool isTileSet (const std::string &name)
void removeTileSet (const std::string &name)
void serial (class NLMISC::IStream &f) throw (NLMISC::EStream)
void setName (const std::string &name)

Static Private Member Functions

void intersect (const std::set< sint32 > &setSrc1, const std::set< sint32 > &setSrc2, std::set< sint32 > &setDst)

Private Attributes

std::string _Name
std::set< std::string > _TileSet

Static Private Attributes

const sint _Version = 0


Member Function Documentation

void NL3D::CTileLand::addTileSet const std::string &  name  ) 
 

Definition at line 63 of file tile_bank.cpp.

References _TileSet.

00064 {
00065         _TileSet.insert (name);
00066 }

const std::string& NL3D::CTileLand::getName void   )  const [inline]
 

Definition at line 169 of file tile_bank.h.

00170         { 
00171                 return _Name; 
00172         };

void NL3D::CTileLand::intersect const std::set< sint32 > &  setSrc1,
const std::set< sint32 > &  setSrc2,
std::set< sint32 > &  setDst
[static, private]
 

bool NL3D::CTileLand::isTileSet const std::string &  name  )  [inline]
 

Definition at line 176 of file tile_bank.h.

References _TileSet.

00177         {
00178                 return _TileSet.find (name)!=_TileSet.end();
00179         }

void NL3D::CTileLand::removeTileSet const std::string &  name  ) 
 

Definition at line 68 of file tile_bank.cpp.

References _TileSet.

00069 {
00070         _TileSet.erase (name);
00071 }

void NL3D::CTileLand::serial class NLMISC::IStream f  )  throw (NLMISC::EStream)
 

Definition at line 55 of file tile_bank.cpp.

00056 {
00057         (void)f.serialVersion(_Version);
00058 
00059         f.serial (_Name);
00060         f.serialCont (_TileSet);
00061 }

void NL3D::CTileLand::setName const std::string &  name  ) 
 

Definition at line 73 of file tile_bank.cpp.

00074 { 
00075         _Name=name;
00076 };


Field Documentation

std::string NL3D::CTileLand::_Name [private]
 

Definition at line 187 of file tile_bank.h.

std::set<std::string> NL3D::CTileLand::_TileSet [private]
 

Definition at line 188 of file tile_bank.h.

Referenced by addTileSet(), isTileSet(), and removeTileSet().

const sint NL3D::CTileLand::_Version = 0 [static, private]
 

Definition at line 53 of file tile_bank.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 08:04:48 2004 for NeL by doxygen 1.3.6