se_basic::WangAreaGrid Class Reference

#include <WangAreaGrid.hpp>

List of all members.

Public Member Functions

 WangAreaGrid (int xSize, int zSize, const char *name)
 ~WangAreaGrid ()
void setTile (char *name, unsigned char *sides)
se_core::AreagetArea (int x, int z)
void addDefinition (const se_core::String &a, const unsigned char *wang)
void setArea (int x, int z, int defIndex)
int findMatch (const unsigned char *wang, int random)
int getDefinition (int x, int z)
const unsigned char getSide (int x, int z, int side)
void setDefaultBorder (unsigned char db)
void generate (int seed)
void save (const char *filename)


Constructor & Destructor Documentation

se_basic::WangAreaGrid::WangAreaGrid int  xSize,
int  zSize,
const char *  name
 

Definition at line 12 of file WangAreaGrid.cpp.

References se_core::DE_ZONE.

se_basic::WangAreaGrid::~WangAreaGrid  ) 
 

Definition at line 26 of file WangAreaGrid.cpp.


Member Function Documentation

void se_basic::WangAreaGrid::addDefinition const se_core::String a,
const unsigned char *  wang
[inline]
 

Definition at line 20 of file WangAreaGrid.hpp.

References se_core::String::copyValue().

int se_basic::WangAreaGrid::findMatch const unsigned char *  wang,
int  random
 

Definition at line 48 of file WangAreaGrid.cpp.

References LogFatal.

void se_basic::WangAreaGrid::generate int  seed  ) 
 

Definition at line 91 of file WangAreaGrid.cpp.

se_core::Area* se_basic::WangAreaGrid::getArea int  x,
int  z
[inline]
 

Definition at line 16 of file WangAreaGrid.hpp.

int se_basic::WangAreaGrid::getDefinition int  x,
int  z
[inline]
 

Definition at line 30 of file WangAreaGrid.hpp.

const unsigned char se_basic::WangAreaGrid::getSide int  x,
int  z,
int  side
[inline]
 

Definition at line 37 of file WangAreaGrid.hpp.

References Assert.

void se_basic::WangAreaGrid::save const char *  filename  ) 
 

Definition at line 120 of file WangAreaGrid.cpp.

void se_basic::WangAreaGrid::setArea int  x,
int  z,
int  defIndex
 

Definition at line 33 of file WangAreaGrid.cpp.

References LogDetail.

void se_basic::WangAreaGrid::setDefaultBorder unsigned char  db  )  [inline]
 

Definition at line 46 of file WangAreaGrid.hpp.

void se_basic::WangAreaGrid::setTile char *  name,
unsigned char *  sides
 


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

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:21 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo