TrackedVehicleSprite Class Reference

#include <TrackedVehicleSprite.h>

Inheritance diagram for TrackedVehicleSprite:

Inheritance graph
[legend]
Collaboration diagram for TrackedVehicleSprite:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TrackedVehicleSprite (int owner, std::string type)
virtual ~TrackedVehicleSprite ()
virtual void update ()
 Update this sprite's pysics and stuff.
virtual KeyDriverallocDriver (void)
virtual int paintHud (std::string &hudString)
virtual Packet packObject () const
 Create a network packet representing vital data about this Sprite.
virtual void setObject (Packet &p)
 Set this object's data to that represented by the packet p.

Private Attributes

Trackstracks

Constructor & Destructor Documentation

TrackedVehicleSprite::TrackedVehicleSprite ( int  owner,
std::string  type 
)

virtual TrackedVehicleSprite::~TrackedVehicleSprite (  )  [virtual]


Member Function Documentation

virtual KeyDriver* TrackedVehicleSprite::allocDriver ( void   )  [inline, virtual]

Reimplemented from VehicleSprite.

virtual Packet TrackedVehicleSprite::packObject (  )  const [virtual]

Create a network packet representing vital data about this Sprite.

The default implementation packs an SPRITE_UDATE string followed by the sprites URI and all physics data in the form pos[0] rot[0] vel[0] ... aVel[3].

See also:
setObject

Reimplemented from Sprite.

virtual int TrackedVehicleSprite::paintHud ( std::string &  hudString  )  [virtual]

Reimplemented from VehicleSprite.

virtual void TrackedVehicleSprite::setObject ( Packet p  )  [virtual]

Set this object's data to that represented by the packet p.

The default implementation unpacks a packet created by the default impl. of packObject().

Reimplemented from Sprite.

virtual void TrackedVehicleSprite::update (  )  [virtual]

Update this sprite's pysics and stuff.

Note that the update method should use the static dTime variable to check the time since last invokation. The caller is responsible for setting this variable to an apropriate value!

Implements Sprite.


Member Data Documentation

Tracks* TrackedVehicleSprite::tracks [private]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7