Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Object Class Reference

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

#include <objects.h>

Inheritance diagram for Object:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 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 (void)

Public Attributes

const ObjectTypetyp
int damage
int dir
int remainingGrowthTime

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  ) 
 

Definition at line 89 of file objects.cpp.

References damage, dir, ObjectType::growthDuration, ObjectType::lifetime, AgeableItem::lifetimer, remainingGrowthTime, and typ.


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 void   ) 
 

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.

void Object::setdir int  dir  ) 
 

Definition at line 99 of file objects.cpp.

References dir.

Referenced by calculateobject().


Member Data Documentation

int Object::damage
 

Definition at line 49 of file objects.h.

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

int Object::dir
 

Definition at line 50 of file objects.h.

Referenced by tfield::addobject(), display(), getdir(), getOverviewMapImage(), Object(), tspfldloaders::readfields(), setdir(), and ForestCalculation::Smoothing::SmoothIt().

int Object::remainingGrowthTime
 

Definition at line 51 of file objects.h.

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

const ObjectType* Object::typ
 

Definition at line 48 of file objects.h.

Referenced by compareObjectHeight(), display(), getOverviewMapImage(), Object(), tspfldloaders::readfields(), tunitattacksobject::setresult(), tunitattacksobject::setup(), and ForestCalculation::Smoothing::SmoothIt().


The documentation for this class was generated from the following files:
Generated on Tue May 13 01:55:10 2008 for Advanced Strategic Command by  doxygen 1.4.2