# 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>

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 get (int &width, int &height, std::vector< NLMISC::CBGRA > &array) const
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:
Cyril Corvazier , Nevrax France
Date:
2000

Definition at line 224 of file tile_bank.h.


Member Enumeration Documentation

enum NL3D::CTileBorder::TBorder
 

Enumeration values:
top 
bottom 
left 
right 
borderCount 

Definition at line 227 of file tile_bank.h.


Constructor & Destructor Documentation

NL3D::CTileBorder::CTileBorder   [inline]
 

Definition at line 228 of file tile_bank.h.

References reset.


Member Function Documentation

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

Definition at line 1667 of file tile_bank.cpp.

References border, and nlassert.

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

Definition at line 1632 of file tile_bank.cpp.

References nlassert.

void NL3D::CTileBorder::doubleSize  
 

Definition at line 1701 of file tile_bank.cpp.

References _Borders, _Height, _Width, bottom, left, right, top, and w.

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

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

Definition at line 254 of file tile_bank.h.

References _Height.

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

Definition at line 250 of file tile_bank.h.

References _Width.

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

Definition at line 238 of file tile_bank.h.

References _Set.

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

Definition at line 1689 of file tile_bank.cpp.

References _Borders, _Height, _Set, _Width, border, bottom, left, right, and top.

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

Definition at line 1684 of file tile_bank.cpp.

References _Borders, _Height, _Width, and border.

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

Definition at line 242 of file tile_bank.h.

References _Borders, _Set, bottom, left, right, and top.

Referenced by CTileBorder.

void NL3D::CTileBorder::rotate  
 

Definition at line 1720 of file tile_bank.cpp.

References _Borders, _Height, _Width, bottom, left, right, and top.

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

Definition at line 1535 of file tile_bank.cpp.

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

Definition at line 1548 of file tile_bank.cpp.

References _Borders, _Height, _Set, _Width, bottom, height, left, nlassert, right, top, w, and width.


Member Data Documentation

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

Definition at line 267 of file tile_bank.h.

Referenced by doubleSize, operator=, operator==, reset, rotate, and set.

sint32 NL3D::CTileBorder::_Height [private]
 

Definition at line 266 of file tile_bank.h.

Referenced by doubleSize, getHeight, operator=, operator==, rotate, and set.

bool NL3D::CTileBorder::_Set [private]
 

Definition at line 264 of file tile_bank.h.

Referenced by isSet, operator=, reset, and set.

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

Definition at line 1533 of file tile_bank.cpp.

sint32 NL3D::CTileBorder::_Width [private]
 

Definition at line 265 of file tile_bank.h.

Referenced by doubleSize, getWidth, operator=, operator==, rotate, and set.


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