Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::SoccerGameType Class Reference

# Zap::SoccerGameType Class Reference

`#include <soccerGame.h>`

Inheritance diagram for Zap::SoccerGameType:

## 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

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

## Private Attributes

Vector< GoalZone * > | mGoals
SafePtr< SoccerBallItem > | mBall

## Member Typedef Documentation

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

Reimplemented from Zap::GameObject.

## Member Enumeration Documentation

enum Zap::SoccerGameType::Scores`[private]`

Enumerator:

  KillScore |
  GoalScore |

anonymous enum

Enumerator:

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