Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: 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

typedef GameType Zap::RabbitGameType::Parent`[private]`

Reimplemented from Zap::GameObject.

## Member Enumeration Documentation

anonymous enum

Enumerator:

  RabbitMsgGrab |
  RabbitMsgRabbitKill |
  RabbitMsgRabbitDead |
  RabbitMsgDrop |
  RabbitMsgReturn |
  RabbitMsgGameOverWin |
  RabbitMsgGameOverTie |

anonymous enum

Enumerator:

  RabbitKillBonus |
  RabbidRabbitBonus |

## Constructor & Destructor Documentation

Zap::RabbitGameType::RabbitGameType | ( |  | ) | `[inline]`

## Member Function Documentation

void Zap::RabbitGameType::processArguments | ( | S32 | argc,
|  | const char ** | argv |
| ) |  |  | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::spawnShip | ( | GameConnection * | theClient | ) | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::idle | ( | GameObject::IdleCallPath | path | ) | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::addFlag | ( | FlagItem * | theFlag | ) | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::flagDropped | ( | Ship * | theShip,
|  | FlagItem * | theFlag |
| ) |  |  | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::shipTouchFlag | ( | Ship * | theShip,
|  | FlagItem * | theFlag |
| ) |  |  | `[virtual]`

Reimplemented from Zap::GameType.

bool Zap::RabbitGameType::objectCanDamageObject | ( | GameObject * | damager,
|  | GameObject * | victim |
| ) |  |  | `[virtual]`

Reimplemented from Zap::GameType.

void Zap::RabbitGameType::controlObjectForClientKilled | ( | GameConnection * | theClient,
|  | GameObject * | clientObject,
|  | GameObject * | killerObject |
| ) |  |  | `[virtual]`

Reimplemented from Zap::GameType.

bool Zap::RabbitGameType::shipHasFlag | ( | Ship * | ship | ) |

Color Zap::RabbitGameType::getShipColor | ( | Ship * | s | ) | `[virtual]`

Reimplemented from Zap::GameType.

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]`

Reimplemented from Zap::GameType.

const char* Zap::RabbitGameType::getInstructionString | ( |  | ) | `[inline, virtual]`

Reimplemented from Zap::GameType.

Zap::RabbitGameType::TNL_DECLARE_RPC | ( | s2cRabbitMessage | ,
|  | (U32 msgIndex, StringTableEntry clientName) |  |
| ) |  |  |

Zap::RabbitGameType::TNL_DECLARE_CLASS | ( | RabbitGameType |  | ) |

## Field Documentation

FlagItem* Zap::RabbitGameType::mRabbitFlag`[private]`

Timer Zap::RabbitGameType::mFlagReturnTimer`[private]`

Timer Zap::RabbitGameType::mFlagScoreTimer`[private]`