#include <objects.h>
Inheritance diagram for Object:

Public Member Functions | |
| const ObjectType * | getType () const |
| Object () | |
| Object (const ObjectType *o) | |
| void | display (Surface &surface, const SPoint &pos, int weather=0) const |
| const OverviewMapImage * | getOverviewMapImage (int weather) |
| void | setDir (int dir) |
| int | getDir () const |
| void | write (tnstream &stream) |
| void | read (tnstream &stream) |
Public Attributes | |
| const ObjectType * | typ |
| int | damage |
| int | dir |
| int | remainingGrowthTime |
Definition at line 46 of file objects.h.
| Object::Object | ( | ) |
| Object::Object | ( | const ObjectType * | o | ) |
Definition at line 89 of file objects.cpp.
References damage, dir, ObjectType::growthDuration, ObjectType::lifetime, AgeableItem::lifetimer, remainingGrowthTime, and typ.
| const ObjectType* Object::getType | ( | ) | const [inline] |
| const OverviewMapImage * Object::getOverviewMapImage | ( | int | weather | ) |
Definition at line 114 of file objects.cpp.
References dir, ObjectType::getOverviewMapImage(), and typ.
| void Object::setDir | ( | int | dir | ) |
| int Object::getDir | ( | ) | const |
| void Object::write | ( | tnstream & | stream | ) |
Definition at line 121 of file objects.cpp.
References damage, dir, AgeableItem::lifetimer, objectVersion, remainingGrowthTime, and tnstream::writeInt().
Referenced by RemoveObject::runAction().
| void Object::read | ( | tnstream & | stream | ) |
Definition at line 130 of file objects.cpp.
References damage, dir, AgeableItem::lifetimer, objectVersion, tnstream::readInt(), and remainingGrowthTime.
Referenced by RemoveObject::undoAction().
| const ObjectType* Object::typ |
Definition at line 48 of file objects.h.
Referenced by ChangeObjectProperty::ChangeObjectProperty(), compareObjectHeight(), display(), ForestCalculation::Smoothing::GetNeighbourMask(), getOverviewMapImage(), getType(), Object(), tspfldloaders::readfields(), tunitattacksobject::setresult(), and GetTargetImage::visit().
| int Object::damage |
| int Object::dir |
Definition at line 51 of file objects.h.
Referenced by MapField::addobject(), ForestCalculation::calculateforest(), display(), getDir(), ForestCalculation::Smoothing::GetNeighbourMask(), getOverviewMapImage(), Object(), read(), tspfldloaders::readfields(), SpawnObject::runAction(), setDir(), SpawnObject::undoAction(), and write().
1.5.1