|
|
|
|
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 ReferenceThis 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] |
|
Member Function Documentation
bool NL3D::CTileBorder::allAlphaSet |
( |
const CTileBorder & |
border, |
|
|
TBorder |
where, |
|
|
int & |
pixel, |
|
|
int & |
composante |
|
) |
[static] |
|
bool NL3D::CTileBorder::compare |
( |
const CTileBorder & |
border1, |
|
|
const CTileBorder & |
border2, |
|
|
TBorder |
where1, |
|
|
TBorder |
where2, |
|
|
int & |
pixel, |
|
|
int & |
composante |
|
) |
[static] |
|
void NL3D::CTileBorder::doubleSize |
( |
|
) |
|
|
void NL3D::CTileBorder::get |
( |
int & |
width, |
|
|
int & |
height, |
|
|
std::vector< NLMISC::CBGRA > & |
array |
|
) |
const |
|
sint32 NL3D::CTileBorder::getHeight |
( |
|
) |
const [inline] |
|
sint32 NL3D::CTileBorder::getWidth |
( |
|
) |
const [inline] |
|
bool NL3D::CTileBorder::isSet |
( |
|
) |
const [inline] |
|
void NL3D::CTileBorder::operator= |
( |
const CTileBorder & |
border |
) |
|
|
bool NL3D::CTileBorder::operator== |
( |
const CTileBorder & |
border |
) |
const |
|
void NL3D::CTileBorder::reset |
( |
void |
|
) |
[inline] |
|
void NL3D::CTileBorder::rotate |
( |
|
) |
|
|
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]
|
|
sint32 NL3D::CTileBorder::_Height [private]
|
|
bool NL3D::CTileBorder::_Set [private]
|
|
const sint NL3D::CTileBorder::_Version = 0 [static, private]
|
|
sint32 NL3D::CTileBorder::_Width [private]
|
|
The documentation for this class was generated from the following files:
|
|