#include <thing.hpp>
Inheritance diagram for Thing:

Knows only its type and the map is resides on.
Definition at line 46 of file thing.hpp.
Public Member Functions | |
| Thing (int type) | |
| Constructor. | |
| virtual | ~Thing () |
| Empty virtual destructor. | |
| int | getType () const |
| Gets type of this thing. | |
| bool | isVisible () const |
| Returns whether this thing is visible on the map or not. | |
| bool | canMove () const |
| Returns whether this thing can move on the map or not. | |
| bool | canFight () const |
| Returns whether this thing can fight or not. | |
| virtual void | update ()=0 |
| Updates the internal status. | |
| int | getMapId () const |
| Gets the map this thing is located on. | |
| void | setMapId (int mapId) |
| Sets the map this thing is located on. | |
Private Attributes | |
| unsigned short | mMapId |
| ID of the map this thing is on. | |
| char | mType |
| Type of this thing. | |
|
|
Constructor.
|
|
|
Empty virtual destructor.
|
|
|
Returns whether this thing can fight or not. (Being) |
|
|
Returns whether this thing can move on the map or not. |
|
|
Gets the map this thing is located on.
Reimplemented in Character. |
|
|
Gets type of this thing.
|
|
|
Returns whether this thing is visible on the map or not. (Object) |
|
|
Sets the map this thing is located on.
Reimplemented in Character. |
|
|
Updates the internal status.
Implemented in Character, Item, Monster, and TriggerArea. |
|
|
ID of the map this thing is on.
|
|
|
Type of this thing.
Reimplemented in Item. |
1.3.9.1