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

This class is a tile set. More...

#include <tile_bank.h>

Collaboration diagram for NL3D::CTileBorder:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TBorder {
  top = 0,
  bottom,
  left,
  right,
  borderCount
}

Public Methods

 CTileBorder ()
void set (int width, int height, const std::vector<NLMISC::CBGRA>& array)
void doubleSize ()
bool operator== (const CTileBorder& border) const
void operator= (const CTileBorder& border)
void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
bool isSet () const
void reset ()
sint32 getWidth () const
sint32 getHeight () const
void rotate ()

Static Public Methods

bool allAlphaSet (const CTileBorder& border, TBorder where, int& pixel, int& composante)
bool compare (const CTileBorder& border1, const CTileBorder& border2, TBorder where1, TBorder where2, int& pixel, int& composante)

Private Attributes

bool _Set
sint32 _Width
sint32 _Height
std::vector<NLMISC::CBGRA_Borders [borderCount]

Static Private Attributes

const sint _Version = 0

Detailed Description

This class is a tile set.

It handles all the tile of the same material.

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

Definition at line 220 of file tile_bank.h.


Member Enumeration Documentation

enum NL3D::CTileBorder::TBorder
 

Enumeration values:
top  
bottom  
left  
right  
borderCount  

Definition at line 223 of file tile_bank.h.


Constructor & Destructor Documentation

NL3D::CTileBorder::CTileBorder ( ) [inline]
 

Definition at line 224 of file tile_bank.h.


Member Function Documentation

bool NL3D::CTileBorder::allAlphaSet ( const CTileBorder & border,
TBorder where,
int & pixel,
int & composante ) [static]
 

Definition at line 1228 of file tile_bank.cpp.

bool NL3D::CTileBorder::compare ( const CTileBorder & border1,
const CTileBorder & border2,
TBorder where1,
TBorder where2,
int & pixel,
int & composante ) [static]
 

Definition at line 1193 of file tile_bank.cpp.

void NL3D::CTileBorder::doubleSize ( )
 

Definition at line 1262 of file tile_bank.cpp.

sint32 NL3D::CTileBorder::getHeight ( ) const [inline]
 

Definition at line 249 of file tile_bank.h.

sint32 NL3D::CTileBorder::getWidth ( ) const [inline]
 

Definition at line 245 of file tile_bank.h.

bool NL3D::CTileBorder::isSet ( ) const [inline]
 

Definition at line 233 of file tile_bank.h.

void NL3D::CTileBorder::operator= ( const CTileBorder & border )
 

Definition at line 1250 of file tile_bank.cpp.

bool NL3D::CTileBorder::operator== ( const CTileBorder & border ) const
 

Definition at line 1245 of file tile_bank.cpp.

void NL3D::CTileBorder::reset ( void ) [inline]
 

Definition at line 237 of file tile_bank.h.

void NL3D::CTileBorder::rotate ( )
 

Definition at line 1281 of file tile_bank.cpp.

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

Definition at line 1143 of file tile_bank.cpp.

void NL3D::CTileBorder::set ( int width,
int height,
const std::vector< NLMISC::CBGRA >& array )
 

Definition at line 1156 of file tile_bank.cpp.


Member Data Documentation

std::vector< NLMISC::CBGRA > NL3D::CTileBorder::_Borders[borderCount] [private]
 

Definition at line 262 of file tile_bank.h.

sint32 NL3D::CTileBorder::_Height [private]
 

Definition at line 261 of file tile_bank.h.

bool NL3D::CTileBorder::_Set [private]
 

Definition at line 259 of file tile_bank.h.

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

Definition at line 1141 of file tile_bank.cpp.

sint32 NL3D::CTileBorder::_Width [private]
 

Definition at line 260 of file tile_bank.h.


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