# 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::CTile Class Reference

Tiles. More...

#include <tile_bank.h>

List of all members.

Public Types

enum  TBitmap {
  diffuse = 0,
  additive,
  alpha,
  bitmapCount
}

Public Methods

 CTile ()
const std::string& getRelativeFileName (TBitmap bitmapType) const
bool isFree () const
void serial (class NLMISC::IStream &f) throw (NLMISC::EStream)
void setFileName (TBitmap bitmapType, const std::string& name)
uint8 getRotAlpha ()
 Get the additional orientation (CCW) for alpha texture. More...

void setRotAlpha (uint8 rot)
 Set the additional orientation (CCW) for alpha texture. More...

uint getGroupFlags () const
 Get the group flags for this tile. More...

void setGroupFlags (uint group)
 Set the group flags for this tile. More...


Private Methods

void clearTile (CTile::TBitmap type)
void free ()

Private Attributes

uint32 _Flags
std::string _BitmapName [bitmapCount]

Static Private Attributes

const sint _Version = 4

Friends

class  CTileSet
class  CTileBank


Detailed Description

Tiles.

Author(s):
Cyril Corvazier , Nevrax France
Date:
2000

Definition at line 53 of file tile_bank.h.


Member Enumeration Documentation

enum NL3D::CTile::TBitmap
 

Enumeration values:
diffuse  
additive  
alpha  
bitmapCount  

Definition at line 70 of file tile_bank.h.


Constructor & Destructor Documentation

NL3D::CTile::CTile ( ) [inline]
 

Definition at line 72 of file tile_bank.h.


Member Function Documentation

void NL3D::CTile::clearTile ( CTile::TBitmap type ) [private]
 

Definition at line 460 of file tile_bank.cpp.

void NL3D::CTile::free ( ) [inline, private]
 

Definition at line 142 of file tile_bank.h.

uint NL3D::CTile::getGroupFlags ( ) const [inline]
 

Get the group flags for this tile.

If the tile is in the I-ne gourp, the flag 1<<I is set. There are 12 groups.

Definition at line 118 of file tile_bank.h.

const std::string & NL3D::CTile::getRelativeFileName ( TBitmap bitmapType ) const [inline]
 

Definition at line 76 of file tile_bank.h.

uint8 NL3D::CTile::getRotAlpha ( ) [inline]
 

Get the additional orientation (CCW) for alpha texture.

Definition at line 95 of file tile_bank.h.

bool NL3D::CTile::isFree ( ) const [inline]
 

Definition at line 80 of file tile_bank.h.

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

Definition at line 407 of file tile_bank.cpp.

void NL3D::CTile::setFileName ( TBitmap bitmapType,
const std::string & name ) [inline]
 

Definition at line 85 of file tile_bank.h.

void NL3D::CTile::setGroupFlags ( uint group ) [inline]
 

Set the group flags for this tile.

If the tile is in the I-ne gourp, the flag 1<<I is set. There are 12 groups.

Definition at line 128 of file tile_bank.h.

void NL3D::CTile::setRotAlpha ( uint8 rot ) [inline]
 

Set the additional orientation (CCW) for alpha texture.

Definition at line 101 of file tile_bank.h.


Friends And Related Function Documentation

class CTileBank [friend]
 

Definition at line 69 of file tile_bank.h.

class CTileSet [friend]
 

Definition at line 68 of file tile_bank.h.


Member Data Documentation

std::string NL3D::CTile::_BitmapName[bitmapCount] [private]
 

Definition at line 150 of file tile_bank.h.

uint32 NL3D::CTile::_Flags [private]
 

Definition at line 149 of file tile_bank.h.

const sint NL3D::CTile::_Version = 4 [static, private]
 

Definition at line 405 of file tile_bank.cpp.


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