Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
Object Class Reference

an instance of an object type (ObjectType) on the map More...

#include <objects.h>

Inheritance diagram for Object:
Inheritance graph
[legend]

Public Member Functions

const ObjectTypegetType () const
 
 Object ()
 
 Object (const ObjectType *o)
 
void display (Surface &surface, const SPoint &pos, int weather=0) const
 
const OverviewMapImagegetOverviewMapImage (int weather)
 
void setDir (int dir)
 
int getDir () const
 
void write (tnstream &stream)
 
void read (tnstream &stream)
 

Public Attributes

const ObjectTypetyp
 
int damage
 
int dir
 
int remainingGrowthTime
 
- Public Attributes inherited from AgeableItem
int lifetimer
 

Additional Inherited Members

- Static Public Member Functions inherited from AgeableItem
static bool age (AgeableItem &obj)
 ages the object by one turn. Returns true if the object shall be removed More...
 
- Protected Member Functions inherited from AgeableItem
 AgeableItem ()
 

Detailed Description

an instance of an object type (ObjectType) on the map

Definition at line 46 of file objects.h.

Constructor & Destructor Documentation

Object::Object ( )

Definition at line 81 of file objects.cpp.

References damage, dir, remainingGrowthTime, and typ.

Object::Object ( const ObjectType o)

Member Function Documentation

void Object::display ( Surface surface,
const SPoint pos,
int  weather = 0 
) const

Definition at line 109 of file objects.cpp.

References dir, ObjectType::display(), and typ.

int Object::getDir ( ) const

Definition at line 104 of file objects.cpp.

References dir.

const OverviewMapImage * Object::getOverviewMapImage ( int  weather)

Definition at line 114 of file objects.cpp.

References dir, ObjectType::getOverviewMapImage(), and typ.

const ObjectType* Object::getType ( ) const
inline

Definition at line 49 of file objects.h.

References typ.

void Object::read ( tnstream stream)
void Object::setDir ( int  dir)

Definition at line 99 of file objects.cpp.

References dir.

Referenced by calculateobject().

void Object::write ( tnstream stream)

Member Data Documentation

int Object::damage

Definition at line 49 of file objects.h.

Referenced by Object(), read(), tspfldloaders::readfields(), tunitattacksobject::setup(), and write().

int Object::dir
int Object::remainingGrowthTime

Definition at line 52 of file objects.h.

Referenced by Object(), read(), tspfldloaders::readfields(), and write().

const ObjectType* Object::typ

The documentation for this class was generated from the following files: