News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::RabbitGameType class Reference

Zap::RabbitGameType Class Reference

#include <rabbitGame.h>

Inheritance diagram for Zap::RabbitGameType:

Zap::GameType Zap::GameObject TNL::NetObject TNL::Object

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

FlagItemmRabbitFlag
Timer mFlagReturnTimer
Timer mFlagScoreTimer

Member Typedef Documentation

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

Reimplemented from Zap::GameObject.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
RabbitMsgGrab 
RabbitMsgRabbitKill 
RabbitMsgRabbitDead 
RabbitMsgDrop 
RabbitMsgReturn 
RabbitMsgGameOverWin 
RabbitMsgGameOverTie 

anonymous enum
 

Enumeration values:
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  ) 
 

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]