#include <Tile.h>
Public Member Functions | |
Tile () | |
Public constructor. | |
virtual | ~Tile () |
Virtual destructor. | |
void | Clear () |
Clears tile. | |
void | SetLevel (int level) |
Sets tile level. | |
void | SetDepth (int depth) |
Sets water depth. | |
void | SetTrees (int trees) |
Sets tree density. | |
bool | IsClear () const |
Checks if tile is clear. | |
bool | IsWater () const |
Checks if tile has water. | |
bool | IsWoods () const |
Check if tile has woods. | |
bool | IsLight () const |
Check if tile has light woods. | |
bool | IsHeavy () const |
Check if tile has heavy woods. | |
int | GetLevel () const |
Gets tile level. | |
int | GetDepth () const |
Gets water depth. | |
int | GetTrees () const |
Gets tree density. | |
common::ErrorCodeType | AddUnit (Unit *unit) |
Adds unit to tile. | |
common::ErrorCodeType | RemoveUnit (Unit *unit) |
Removes unit from tile. | |
Private Attributes | |
signed char | m_Level |
Tile level. | |
signed char | m_Depth |
Water depth. | |
signed char | m_Trees |
Tree density. |
Tile | ( | ) |
Public constructor.
~Tile | ( | ) | [virtual] |
Virtual destructor.
void Clear | ( | ) | [inline] |
Clears tile.
void SetLevel | ( | int | level | ) | [inline] |
Sets tile level.
void SetDepth | ( | int | depth | ) | [inline] |
Sets water depth.
void SetTrees | ( | int | trees | ) | [inline] |
Sets tree density.
bool IsClear | ( | ) | const [inline] |
Checks if tile is clear.
bool IsWater | ( | ) | const [inline] |
Checks if tile has water.
bool IsWoods | ( | ) | const [inline] |
Check if tile has woods.
bool IsLight | ( | ) | const [inline] |
Check if tile has light woods.
bool IsHeavy | ( | ) | const [inline] |
Check if tile has heavy woods.
int GetLevel | ( | ) | const [inline] |
Gets tile level.
int GetDepth | ( | ) | const [inline] |
Gets water depth.
int GetTrees | ( | ) | const [inline] |
Gets tree density.
common::ErrorCodeType AddUnit | ( | Unit * | unit | ) |
Adds unit to tile.
Failure otherwise.
unit | Pointer to unit. |
common::ErrorCodeType RemoveUnit | ( | Unit * | unit | ) |
Removes unit from tile.
Failure otherwise.
unit | Pointer to unit. |
signed char m_Depth [private] |
Water depth.
signed char m_Trees [private] |
Tree density.
Navigation
Home Page
Screen Shots
Developers
Documentation
Doxygen
Namespace List
Class List
Class Hierarchy
File List
Todo List
Links
SDL Library
License
SourceForge Project
Forums
Download
Regimental Command
Copyright © 2008
Randi J. Relander