Inherits Annchienta::Entity.
Inherited by SwigDirector_Tile.
Public Member Functions | |
| virtual void | draw () |
| virtual int | getDepth () |
| virtual EntityType | getEntityType () const |
| virtual Mask * | getMask () const |
| virtual Point | getMaskPosition () const |
| ObstructionType | getObstructionType () const |
| Point | getPoint (int i) const |
| Point * | getPointPointer (int i) |
| int | getSideSurface () const |
| int | getSideSurfaceOffset () const |
| int | getSurface (int i) const |
| int | getZ (int point) const |
| bool | hasPoint (Point point) |
| bool | hasVisualIndication () const |
| bool | isNullTile () const |
| bool | isShadowed () const |
| void | setObstructionType (ObstructionType obstructionType) |
| Sets the ObstructionType. | |
| void | setShadowed (bool shadowed) |
| void | setSideSurface (int ss) |
| void | setSideSurfaceOffset (int sso) |
| void | setSurface (int index, int s) |
| void | setVisualIndication (bool visualIndication) |
| void | setZ (int point, int z) |
| Tile (TileSet *, Point, int, Point, int, Point, int, Point, int, int ssOffset=0, int ss=0) | |
| virtual void | update () |
| ~Tile () | |
Private Member Functions | |
| void | makeList () |
Private Attributes | |
| Point | isoPoints [4] |
| GLuint | list |
| bool | needsRecompiling |
| bool | nullTile |
| ObstructionType | obstruction |
| Point | points [4] |
| bool | shadowed |
| Surface * | sideSurface |
| int | sideSurfaceNumber |
| int | sideSurfaceOffset |
| int | surfaceNumbers [4] |
| Surface * | surfaces [4] |
| TileSet * | tileSet |
| bool | visualIndication |
This class is used to hold parts of the Layer, called tiles. Because we are using an isometric system, tiles are usually shaped like a rhombus.
A Tile consist of four Points, indexed like this:
A Tile has a top Surface and a Side Surface.
| Annchienta::Tile::Tile | ( | TileSet * | , | |
| Point | , | |||
| int | , | |||
| Point | , | |||
| int | , | |||
| Point | , | |||
| int | , | |||
| Point | , | |||
| int | , | |||
| int | ssOffset = 0, |
|||
| int | ss = 0 | |||
| ) |
| Annchienta::Tile::~Tile | ( | ) |
| virtual void Annchienta::Tile::draw | ( | ) | [virtual] |
| virtual int Annchienta::Tile::getDepth | ( | ) | [virtual] |
Implements Annchienta::Entity.
Reimplemented in SwigDirector_Tile.
| virtual EntityType Annchienta::Tile::getEntityType | ( | ) | const [virtual] |
Get the type of this Entity.
Implements Annchienta::Entity.
Reimplemented in SwigDirector_Tile.
| virtual Mask* Annchienta::Tile::getMask | ( | ) | const [virtual] |
Implements Annchienta::Entity.
Reimplemented in SwigDirector_Tile.
| virtual Point Annchienta::Tile::getMaskPosition | ( | ) | const [virtual] |
Where the tile mask should be placed... this is mostly used internally.
Implements Annchienta::Entity.
Reimplemented in SwigDirector_Tile.
| ObstructionType Annchienta::Tile::getObstructionType | ( | ) | const |
| Point Annchienta::Tile::getPoint | ( | int | i | ) | const |
Returns a point in this tile with the given index.
| Point* Annchienta::Tile::getPointPointer | ( | int | i | ) |
| int Annchienta::Tile::getSideSurface | ( | ) | const |
| int Annchienta::Tile::getSideSurfaceOffset | ( | ) | const |
| int Annchienta::Tile::getSurface | ( | int | i | ) | const |
| int Annchienta::Tile::getZ | ( | int | point | ) | const |
Returns the Z coordinate of the Point with the index given by point.
| bool Annchienta::Tile::hasVisualIndication | ( | ) | const |
| bool Annchienta::Tile::isNullTile | ( | ) | const |
| bool Annchienta::Tile::isShadowed | ( | ) | const |
| void Annchienta::Tile::makeList | ( | ) | [private] |
| void Annchienta::Tile::setObstructionType | ( | ObstructionType | obstructionType | ) |
Sets the ObstructionType.
There are three possibilities:
| obstructionType | The new ObstructionType for this tile. |
| void Annchienta::Tile::setShadowed | ( | bool | shadowed | ) |
| void Annchienta::Tile::setSideSurface | ( | int | ss | ) |
| void Annchienta::Tile::setSideSurfaceOffset | ( | int | sso | ) |
| void Annchienta::Tile::setSurface | ( | int | index, | |
| int | s | |||
| ) |
| void Annchienta::Tile::setVisualIndication | ( | bool | visualIndication | ) |
| void Annchienta::Tile::setZ | ( | int | point, | |
| int | z | |||
| ) |
Sets the Z value of a point.
| point | Index of the point you want to set the Z for. | |
| z | The new Z coordinate for this Point. |
| virtual void Annchienta::Tile::update | ( | ) | [virtual] |
Updates the entity, eg. update sprite, position, ...
Implements Annchienta::Entity.
Reimplemented in SwigDirector_Tile.
Point Annchienta::Tile::isoPoints[4] [private] |
GLuint Annchienta::Tile::list [private] |
bool Annchienta::Tile::needsRecompiling [private] |
bool Annchienta::Tile::nullTile [private] |
ObstructionType Annchienta::Tile::obstruction [private] |
Point Annchienta::Tile::points[4] [private] |
bool Annchienta::Tile::shadowed [private] |
Surface* Annchienta::Tile::sideSurface [private] |
int Annchienta::Tile::sideSurfaceNumber [private] |
int Annchienta::Tile::sideSurfaceOffset [private] |
int Annchienta::Tile::surfaceNumbers[4] [private] |
Surface* Annchienta::Tile::surfaces[4] [private] |
TileSet* Annchienta::Tile::tileSet [private] |
bool Annchienta::Tile::visualIndication [private] |
1.5.7.1