#include <Unit.h>
Public Member Functions | |
Unit () | |
Public constructor. | |
virtual | ~Unit () |
Virtual destructor. | |
common::ErrorCodeType | PlaceOnMap (Map *pMap, int x, int y) |
Places unit on map. | |
common::ErrorCodeType | RemoveFromMap () |
Removes unit from map. | |
common::ErrorCodeType | MoveTo (int x, int y) |
Moves to new location. | |
Private Attributes | |
int | m_IdCode |
Unit ID code. | |
Map * | m_pMap |
Pointer to map. | |
int | m_TileX |
X position on map. | |
int | m_TileY |
Y position on map. |
Unit | ( | ) |
Public constructor.
~Unit | ( | ) | [virtual] |
Virtual destructor.
common::ErrorCodeType PlaceOnMap | ( | Map * | pMap, | |
int | x, | |||
int | y | |||
) |
Places unit on map.
Failure otherwise.
pMap | Pointer to map. |
x | X coordinate on map. |
y | Y coordinate on map. |
common::ErrorCodeType RemoveFromMap | ( | ) |
Removes unit from map.
Failure otherwise.
common::ErrorCodeType MoveTo | ( | int | x, | |
int | y | |||
) |
Moves to new location.
Failure otherwise.
x | X coordinate of move. |
y | Y coordinate of move. |
int m_TileX [private] |
X position on map.
int m_TileY [private] |
Y position on map.
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