class GameObjTimed: public GameObj

This class represent a generic game object with a limited time to live (explosions, bullet, fragments)

Inheritance:


Public Fields

[more]int ttl
Time To Live (expressed in msec)

Public Methods

[more] GameObjTimed()
default constructor
[more] GameObjTimed(const Point3f &_p, const float _a)
constructor with given position and direction
[more] GameObjTimed(const Point3f &_p, const float _a, const Point3f &_v)
constructor with given position and direction and velocity
[more]void Update(int t)
It must update and check the remaining Time To Live (TTL) of the object and disactivating it if necessary

Inherited from GameObj:

Public Fields

oPoint3f p
oPoint3f axis
ofloat angle
oPoint3f v
ofloat av
obool active
oSphere3f B

Public Methods

oint Draw()
oPoint3f VDir()
obool Collide(GameObj *o)
ovoid DrawBound()
obool operator < ( GameObj const & o ) const
obool operator == ( GameObj const & o ) const

Documentation

This class represent a generic game object with a limited time to live (explosions, bullet, fragments).

Version History

o GameObjTimed()
default constructor

o GameObjTimed(const Point3f &_p, const float _a)
constructor with given position and direction

o GameObjTimed(const Point3f &_p, const float _a, const Point3f &_v)
constructor with given position and direction and velocity

oint ttl
Time To Live (expressed in msec). Time that the object has before it disappear. Once the ttl become <= 0 the object become not active and someone will remove it from the Active objects list

ovoid Update(int t)
It must update and check the remaining Time To Live (TTL) of the object and disactivating it if necessary.


Direct child classes:
Fragment
Exp
Bullet
Bonus

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.