|
Zap::RabbitGameType class Reference
Zap::RabbitGameType Class Reference#include <rabbitGame.h>
Inheritance diagram for Zap::RabbitGameType:
|
Public Types |
enum | {
RabbitMsgGrab,
RabbitMsgRabbitKill,
RabbitMsgRabbitDead,
RabbitMsgDrop,
RabbitMsgReturn,
RabbitMsgGameOverWin,
RabbitMsgGameOverTie
} |
enum | {
RabbitKillBonus = 4,
RabbidRabbitBonus = 4
} |
Public Member Functions |
| RabbitGameType () |
void | processArguments (S32 argc, const char **argv) |
void | spawnShip (GameConnection *theClient) |
void | idle (GameObject::IdleCallPath path) |
void | addFlag (FlagItem *theFlag) |
void | flagDropped (Ship *theShip, FlagItem *theFlag) |
void | shipTouchFlag (Ship *theShip, FlagItem *theFlag) |
bool | objectCanDamageObject (GameObject *damager, GameObject *victim) |
void | controlObjectForClientKilled (GameConnection *theClient, GameObject *clientObject, GameObject *killerObject) |
bool | shipHasFlag (Ship *ship) |
Color | getShipColor (Ship *s) |
void | onFlagGrabbed (Ship *ship, RabbitFlagItem *flag) |
void | onFlagHeld (Ship *ship) |
void | onFlagDropped (Ship *victimShip) |
void | onFlaggerDead (Ship *killerShip) |
void | onFlaggerKill (Ship *rabbitShip) |
void | onFlagReturned () |
void | onClientScore (Ship *ship, S32 howMuch) |
const char * | getGameTypeString () |
const char * | getInstructionString () |
| TNL_DECLARE_RPC (s2cRabbitMessage,(U32 msgIndex, StringTableEntry clientName)) |
| TNL_DECLARE_CLASS (RabbitGameType) |
Private Types |
typedef GameType | Parent |
Private Attributes |
FlagItem * | mRabbitFlag |
Timer | mFlagReturnTimer |
Timer | mFlagScoreTimer |
Member Typedef Documentation
Member Enumeration Documentation
|
- Enumeration values:
-
RabbitMsgGrab |
|
RabbitMsgRabbitKill |
|
RabbitMsgRabbitDead |
|
RabbitMsgDrop |
|
RabbitMsgReturn |
|
RabbitMsgGameOverWin |
|
RabbitMsgGameOverTie |
|
|
|
- Enumeration values:
-
RabbitKillBonus |
|
RabbidRabbitBonus |
|
|
Constructor & Destructor Documentation
Zap::RabbitGameType::RabbitGameType |
( |
|
) |
[inline] |
|
Member Function Documentation
void Zap::RabbitGameType::processArguments |
( |
S32 |
argc, |
|
|
const char ** |
argv |
|
) |
[virtual] |
|
void Zap::RabbitGameType::spawnShip |
( |
GameConnection * |
theClient |
) |
[virtual] |
|
void Zap::RabbitGameType::addFlag |
( |
FlagItem * |
theFlag |
) |
[virtual] |
|
void Zap::RabbitGameType::flagDropped |
( |
Ship * |
theShip, |
|
|
FlagItem * |
theFlag |
|
) |
[virtual] |
|
void Zap::RabbitGameType::shipTouchFlag |
( |
Ship * |
theShip, |
|
|
FlagItem * |
theFlag |
|
) |
[virtual] |
|
bool Zap::RabbitGameType::objectCanDamageObject |
( |
GameObject * |
damager, |
|
|
GameObject * |
victim |
|
) |
[virtual] |
|
bool Zap::RabbitGameType::shipHasFlag |
( |
Ship * |
ship |
) |
|
|
Color Zap::RabbitGameType::getShipColor |
( |
Ship * |
s |
) |
[virtual] |
|
void Zap::RabbitGameType::onFlagGrabbed |
( |
Ship * |
ship, |
|
|
RabbitFlagItem * |
flag |
|
) |
|
|
void Zap::RabbitGameType::onFlagHeld |
( |
Ship * |
ship |
) |
|
|
void Zap::RabbitGameType::onFlagDropped |
( |
Ship * |
victimShip |
) |
|
|
void Zap::RabbitGameType::onFlaggerDead |
( |
Ship * |
killerShip |
) |
|
|
void Zap::RabbitGameType::onFlaggerKill |
( |
Ship * |
rabbitShip |
) |
|
|
void Zap::RabbitGameType::onFlagReturned |
( |
|
) |
|
|
void Zap::RabbitGameType::onClientScore |
( |
Ship * |
ship, |
|
|
S32 |
howMuch |
|
) |
|
|
const char* Zap::RabbitGameType::getGameTypeString |
( |
|
) |
[inline, virtual] |
|
const char* Zap::RabbitGameType::getInstructionString |
( |
|
) |
[inline, virtual] |
|
Zap::RabbitGameType::TNL_DECLARE_RPC |
( |
s2cRabbitMessage |
, |
|
|
(U32 msgIndex, StringTableEntry clientName) |
|
|
) |
|
|
Field Documentation
|