|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CTileBank Class ReferenceThis class manage tile texture.
More...
#include <tile_bank.h>
List of all members.
Public Types |
enum | TTileType { _128x128 = 0,
_256x256,
transition,
undefined
} |
Public Methods |
| CTileBank () |
sint | getLandCount () const |
const CTileLand * | getLand (int landIndex) const |
CTileLand * | getLand (int landIndex) |
sint | getTileSetCount () const |
const CTileSet * | getTileSet (int tileIndex) const |
CTileSet * | getTileSet (int tileIndex) |
sint | getTileCount () const |
const CTile * | getTile (int tileIndex) const |
CTile * | getTile (int tileIndex) |
sint | addLand (const std::string &name) |
void | removeLand (sint landIndex) |
sint | addTileSet (const std::string &name) |
void | removeTileSet (sint landIndex) |
void | xchgTileset (sint first, sint second) |
void | clear () |
sint | getNumBitmap (CTile::TBitmap bitmap) const |
void | computeXRef () |
void | cleanUnusedData () |
void | getTileXRef (int tile, int &tileSet, int &number, TTileType &type) const |
| Return the xref for a tile. More...
|
uint | getDisplacementMapCount () const |
const char * | getDisplacementMap (uint noiseMap) |
void | setDisplacementMap (uint noiseMap, const char *newName) |
uint | getDisplacementMap (const std::string &fileName) |
void | removeDisplacementMap (uint mapId) |
void | makeAllPathRelative () |
void | makeAllExtensionDDS () |
| This method change ".tga" of texture filename, to ".dds". Do this only for Additive and Diffuse part (not alpha). More...
|
void | setAbsPath (const std::string &newPath) |
const std::string & | getAbsPath () const |
void | serial (class NLMISC::IStream &f) throw (NLMISC::EStream) |
|
CTileNoiseMap * | getTileNoiseMap (uint tileNumber, uint tileSubNoise) |
| Return the tilenoisemap pointer for this tile and subnoise tile. More...
|
const CTileVegetableDesc & | getTileVegetableDesc (uint tileNumber) const |
| return the TileVegetable desc for this tile. More...
|
void | loadTileVegetableDescs () |
| you should call this method, after serialising the TileBank, and before CLandscape::initTileBanks() You must call CLandscape::initTileBanks() after calling this method for each tileSet call CTileSet::loadTileVegetableDesc(). More...
|
void | initTileVegetableDescs (CVegetableManager *vegetableManager) |
| register all CVegetable to the Manager. More...
|
Private Methods |
sint | createTile () |
void | freeTile (int tileIndex) |
Private Attributes |
std::vector< CTileLand > | _LandVector |
std::vector< CTileSet > | _TileSetVector |
std::vector< CTile > | _TileVector |
std::vector< CTileXRef > | _TileXRef |
std::vector< CTileNoise > | _DisplacementMap |
std::string | _AbsPath |
Static Private Attributes |
const sint | _Version = 4 |
Friends |
class | CTileSet |
Detailed Description
This class manage tile texture.
It can load banktile description file (*.bank), and then gives access to land infos. -
Author:
-
Cyril Corvazier , Nevrax France
-
Date:
-
2000
Definition at line 494 of file tile_bank.h.
Member Enumeration Documentation
enum NL3D::CTileBank::TTileType
|
|
|
-
Enumeration values:
-
_128x128 |
|
_256x256 |
|
transition |
|
undefined |
|
Definition at line 498 of file tile_bank.h.
Referenced by getTileXRef. |
Constructor & Destructor Documentation
NL3D::CTileBank::CTileBank |
( |
|
) |
|
|
Member Function Documentation
sint NL3D::CTileBank::addLand |
( |
const std::string & |
name |
) |
|
|
sint NL3D::CTileBank::addTileSet |
( |
const std::string & |
name |
) |
|
|
void NL3D::CTileBank::cleanUnusedData |
( |
|
) |
|
|
void NL3D::CTileBank::clear |
( |
|
) |
|
|
void NL3D::CTileBank::computeXRef |
( |
|
) |
|
|
|
Definition at line 285 of file tile_bank.cpp.
References _128x128, _256x256, _TileSetVector, _TileVector, _TileXRef, CTileSet, getTileSet, index, s, t, and transition. |
sint NL3D::CTileBank::createTile |
( |
|
) |
[private] |
|
void NL3D::CTileBank::freeTile |
( |
int |
tileIndex |
) |
[private] |
|
const std::string& NL3D::CTileBank::getAbsPath |
( |
|
) |
const [inline] |
|
uint NL3D::CTileBank::getDisplacementMap |
( |
const std::string & |
fileName |
) |
|
|
const char * NL3D::CTileBank::getDisplacementMap |
( |
uint |
noiseMap |
) |
|
|
uint NL3D::CTileBank::getDisplacementMapCount |
( |
|
) |
const |
|
CTileLand* NL3D::CTileBank::getLand |
( |
int |
landIndex |
) |
[inline] |
|
const CTileLand* NL3D::CTileBank::getLand |
( |
int |
landIndex |
) |
const [inline] |
|
sint NL3D::CTileBank::getLandCount |
( |
|
) |
const [inline] |
|
CTile* NL3D::CTileBank::getTile |
( |
int |
tileIndex |
) |
[inline] |
|
const CTile* NL3D::CTileBank::getTile |
( |
int |
tileIndex |
) |
const [inline] |
|
sint NL3D::CTileBank::getTileCount |
( |
|
) |
const [inline] |
|
CTileSet* NL3D::CTileBank::getTileSet |
( |
int |
tileIndex |
) |
[inline] |
|
const CTileSet* NL3D::CTileBank::getTileSet |
( |
int |
tileIndex |
) |
const [inline] |
|
sint NL3D::CTileBank::getTileSetCount |
( |
|
) |
const [inline] |
|
void NL3D::CTileBank::getTileXRef |
( |
int |
tile, |
|
|
int & |
tileSet, |
|
|
int & |
number, |
|
|
TTileType & |
type |
|
) |
const [inline] |
|
|
Return the xref for a tile.
-
Parameters:
-
tile |
is the tile number. |
tileSet |
will receive the tile set number in which the tile is. -1 if the tile is not used. |
number |
will receive the number of the tile in the tileset. |
type |
is the type of tile. |
Definition at line 560 of file tile_bank.h.
References _TileXRef, nlassert, TTileType, and type. |
void NL3D::CTileBank::initTileVegetableDescs |
( |
CVegetableManager * |
vegetableManager |
) |
|
|
void NL3D::CTileBank::loadTileVegetableDescs |
( |
|
) |
|
|
void NL3D::CTileBank::makeAllExtensionDDS |
( |
|
) |
|
|
|
This method change ".tga" of texture filename, to ".dds". Do this only for Additive and Diffuse part (not alpha).
Definition at line 387 of file tile_bank.cpp.
References _TileVector. |
void NL3D::CTileBank::makeAllPathRelative |
( |
|
) |
|
|
void NL3D::CTileBank::removeDisplacementMap |
( |
uint |
mapId |
) |
|
|
void NL3D::CTileBank::removeLand |
( |
sint |
landIndex |
) |
|
|
void NL3D::CTileBank::removeTileSet |
( |
sint |
landIndex |
) |
|
|
void NL3D::CTileBank::setAbsPath |
( |
const std::string & |
newPath |
) |
[inline] |
|
void NL3D::CTileBank::setDisplacementMap |
( |
uint |
noiseMap, |
|
|
const char * |
newName |
|
) |
|
|
void NL3D::CTileBank::xchgTileset |
( |
sint |
first, |
|
|
sint |
second |
|
) |
|
|
Friends And Related Function Documentation
friend class CTileSet [friend]
|
|
Member Data Documentation
std::string NL3D::CTileBank::_AbsPath [private]
|
|
std::vector<CTileNoise> NL3D::CTileBank::_DisplacementMap [private]
|
|
std::vector<CTileLand> NL3D::CTileBank::_LandVector [private]
|
|
std::vector<CTileSet> NL3D::CTileBank::_TileSetVector [private]
|
|
|
Definition at line 646 of file tile_bank.h.
Referenced by addTileSet, cleanUnusedData, clear, computeXRef, getTileNoiseMap, getTileSet, getTileSetCount, getTileVegetableDesc, initTileVegetableDescs, loadTileVegetableDescs, removeDisplacementMap, removeTileSet, and xchgTileset. |
std::vector<CTile> NL3D::CTileBank::_TileVector [private]
|
|
|
Definition at line 647 of file tile_bank.h.
Referenced by clear, computeXRef, createTile, freeTile, getNumBitmap, getTile, getTileCount, getTileNoiseMap, getTileVegetableDesc, makeAllExtensionDDS, and makeAllPathRelative. |
std::vector<CTileXRef> NL3D::CTileBank::_TileXRef [private]
|
|
const sint NL3D::CTileBank::_Version = 4 [static, private]
|
|
The documentation for this class was generated from the following files:
|
|