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::SoccerGameType class Reference

Zap::SoccerGameType Class Reference

#include <soccerGame.h>

Inheritance diagram for Zap::SoccerGameType:

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

Public Types

enum  {
  SoccerMsgScoreGoal,
  SoccerMsgScoreOwnGoal,
  SoccerMsgGameOverTeamWin,
  SoccerMsgGameOverTie
}

Public Member Functions

void scoreGoal (StringTableEntry playerName, U32 goalTeamIndex)
void addZone (GoalZone *theZone)
void setBall (SoccerBallItem *theBall)
void renderInterfaceOverlay (bool scoreboardVisible)
const char * getGameTypeString ()
virtual const char * getInstructionString ()
 TNL_DECLARE_RPC (s2cSoccerScoreMessage,(U32 msgIndex, StringTableEntry clientName, U32 teamIndex))
 TNL_DECLARE_CLASS (SoccerGameType)

Private Types

typedef GameType Parent
enum  Scores {
  KillScore = 1,
  GoalScore = 5
}

Private Attributes

Vector< GoalZone * > mGoals
SafePtr< SoccerBallItemmBall

Member Typedef Documentation

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

Reimplemented from Zap::GameObject.


Member Enumeration Documentation

enum Zap::SoccerGameType::Scores [private]
 

Enumeration values:
KillScore 
GoalScore 

anonymous enum
 

Enumeration values:
SoccerMsgScoreGoal 
SoccerMsgScoreOwnGoal 
SoccerMsgGameOverTeamWin 
SoccerMsgGameOverTie 


Member Function Documentation

void Zap::SoccerGameType::scoreGoal StringTableEntry  playerName,
U32  goalTeamIndex
 

void Zap::SoccerGameType::addZone GoalZone theZone  )  [virtual]
 

Reimplemented from Zap::GameType.

void Zap::SoccerGameType::setBall SoccerBallItem theBall  ) 
 

void Zap::SoccerGameType::renderInterfaceOverlay bool  scoreboardVisible  )  [virtual]
 

Reimplemented from Zap::GameType.

const char* Zap::SoccerGameType::getGameTypeString  )  [inline, virtual]
 

Reimplemented from Zap::GameType.

virtual const char* Zap::SoccerGameType::getInstructionString  )  [inline, virtual]
 

Reimplemented from Zap::GameType.

Zap::SoccerGameType::TNL_DECLARE_RPC s2cSoccerScoreMessage  ,
(U32 msgIndex, StringTableEntry clientName, U32 teamIndex) 
 

Zap::SoccerGameType::TNL_DECLARE_CLASS SoccerGameType   ) 
 


Field Documentation

Vector<GoalZone *> Zap::SoccerGameType::mGoals [private]
 

SafePtr<SoccerBallItem> Zap::SoccerGameType::mBall [private]