Zap::Mine class Reference
Zap::Mine Class Reference
#include <projectile.h>
Inheritance diagram for Zap::Mine:
Member Typedef Documentation
Member Enumeration Documentation
|
- Enumeration values:
-
ArmedMask |
|
SensorRadius |
|
InnerBlastRadius |
|
OuterBlastRadius |
|
Reimplemented from Zap::GrenadeProjectile. |
Constructor & Destructor Documentation
Member Function Documentation
bool Zap::Mine::collide |
( |
GameObject * |
otherObj |
) |
[virtual] |
|
void Zap::Mine::damageObject |
( |
DamageInfo * |
damageInfo |
) |
[virtual] |
|
void Zap::Mine::renderItem |
( |
Point |
p |
) |
[virtual] |
|
|
Write the object's state to a packet.
packUpdate is called on an object when it is to be written into a packet stream for transmission to the client. The updateMask parameter contains the out-of-date state mask for the object. The initial update mask for any object to a client will always be 0xFFFFFFFF, signifying that all states are out of date. It is often useful to check for this mask, to write one-time initialization information for that object.
Reimplemented from Zap::GrenadeProjectile. |
void Zap::Mine::unpackUpdate |
( |
GhostConnection * |
connection, |
|
|
BitStream * |
stream |
|
) |
[virtual] |
|
|
Unpack data written by packUpdate().
unpackUpdate is called on the client to read an update out of a packet's bit stream. Because the update mask is not encoded by the network system directly, each unpack update function will have to determine from the bit stream which states are being updated.
Reimplemented from Zap::GrenadeProjectile. |
Zap::Mine::TNL_DECLARE_CLASS |
( |
Mine |
|
) |
|
|
Field Documentation