#include <TankSprite.h>
Inheritance diagram for TankSprite:
Public Member Functions | |
| TankSprite (int owner, std::string type) | |
| virtual | ~TankSprite () |
| virtual void | update () |
| Update this sprite's pysics and stuff. | |
| virtual KeyDriver * | allocDriver (void) |
| virtual class AutoGunner * | getAutoGunner (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. | |
Protected Attributes | |
| CannonTurret * | cannonTurret |
| Tracks * | tracks |
Friends | |
| class | TankDriver |
| class | AutoGunner |
| class | Hud |
| TankSprite::TankSprite | ( | int | owner, | |
| std::string | type | |||
| ) |
| virtual TankSprite::~TankSprite | ( | ) | [virtual] |
| virtual KeyDriver* TankSprite::allocDriver | ( | void | ) | [inline, virtual] |
Reimplemented from VehicleSprite.
| virtual class AutoGunner* TankSprite::getAutoGunner | ( | void | ) | [inline, virtual] |
Reimplemented from VehicleSprite.
| virtual Packet TankSprite::packObject | ( | ) | const [virtual] |
| virtual int TankSprite::paintHud | ( | std::string & | hudString | ) | [virtual] |
Reimplemented from VehicleSprite.
| virtual void TankSprite::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 TankSprite::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.
friend class AutoGunner [friend] |
friend class Hud [friend] |
friend class TankDriver [friend] |
CannonTurret* TankSprite::cannonTurret [protected] |
Tracks* TankSprite::tracks [protected] |
1.4.7