TowerVR  1.0
TowerVR.TowerGameManagerImpl Class Reference
Inheritance diagram for TowerVR.TowerGameManagerImpl:
TowerVR.ITowerGameManager TowerVR.MasterTowerGameManagerImpl

Public Member Functions

virtual void notifyIsReady ()
 
virtual void tryStartGame ()
 
virtual void selectTowerPiece (TowerPieceDifficulty difficulty)
 
virtual void placeTowerPiece (float positionX, float positionZ, float rotationDegreesY)
 

Public Attributes

TowerGameManager parent
 

Protected Member Functions

virtual void Awake ()
 
virtual void OnDestroy ()
 
virtual void onEvent (byte eventCode, object content, int senderID)
 
virtual void handleGameStateChangedEvent (int gameState)
 
virtual void handleTurnStateChangedEvent (int turnState)
 
virtual void handleTowerStateChangedEvent (int towerState)
 
virtual void handleNextPlayerEvent (int nextPlayerID)
 
virtual void handleScoreChangedEvent (int playerID, Score score)
 
virtual void handlePlayerLostEvent (int playerID)
 
virtual void handlePlayerWonEvent (int playerID)
 

Static Protected Member Functions

static void LogMalformedEventContent (string eventName, int senderID)
 

Detailed Description

An ITowerGameManager that represents a remote instance.

Do not use this class directly in the game logic.

Member Function Documentation

virtual void TowerVR.TowerGameManagerImpl.Awake ( )
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handleGameStateChangedEvent ( int  gameState)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handleNextPlayerEvent ( int  nextPlayerID)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handlePlayerLostEvent ( int  playerID)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handlePlayerWonEvent ( int  playerID)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handleScoreChangedEvent ( int  playerID,
Score  score 
)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handleTowerStateChangedEvent ( int  towerState)
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.handleTurnStateChangedEvent ( int  turnState)
protectedvirtual
static void TowerVR.TowerGameManagerImpl.LogMalformedEventContent ( string  eventName,
int  senderID 
)
staticprotected
virtual void TowerVR.TowerGameManagerImpl.notifyIsReady ( )
virtual

Sends an event to the master client implementation.

Implements TowerVR.ITowerGameManager.

Reimplemented in TowerVR.MasterTowerGameManagerImpl.

virtual void TowerVR.TowerGameManagerImpl.OnDestroy ( )
protectedvirtual
virtual void TowerVR.TowerGameManagerImpl.onEvent ( byte  eventCode,
object  content,
int  senderID 
)
protectedvirtual

Receives events from the master client and alerts the observer delegates (i.e. TowerGameBehaviours).

Reimplemented in TowerVR.MasterTowerGameManagerImpl.

virtual void TowerVR.TowerGameManagerImpl.placeTowerPiece ( float  positionX,
float  positionZ,
float  rotationDegreesY 
)
virtual

Sends an event to the master client implementation.

Implements TowerVR.ITowerGameManager.

Reimplemented in TowerVR.MasterTowerGameManagerImpl.

virtual void TowerVR.TowerGameManagerImpl.selectTowerPiece ( TowerPieceDifficulty  difficulty)
virtual

Sends an event to the master client implementation.

Implements TowerVR.ITowerGameManager.

Reimplemented in TowerVR.MasterTowerGameManagerImpl.

virtual void TowerVR.TowerGameManagerImpl.tryStartGame ( )
virtual

Sends an event to the master client implementation.

Implements TowerVR.ITowerGameManager.

Reimplemented in TowerVR.MasterTowerGameManagerImpl.

Member Data Documentation

TowerGameManager TowerVR.TowerGameManagerImpl.parent

The documentation for this class was generated from the following file: