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

Public Member Functions

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

Protected Member Functions

sealed override void Awake ()
 
sealed override void onEvent (byte eventCode, object content, int senderID)
 
void handlePlayerReadyEvent (int playerID)
 PhotonNetworkEvent handles ///. More...
 
void handleTryStartGameEvent (int playerID)
 
void handleSelectTowerPieceEvent (int playerID, TowerPieceDifficulty difficulty)
 
void handlePlaceTowerPieceEvent (int playerID, float posX, float posZ, float rotDegreesY)
 
- Protected Member Functions inherited from TowerVR.TowerGameManagerImpl
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)
 

Additional Inherited Members

- Public Attributes inherited from TowerVR.TowerGameManagerImpl
TowerGameManager parent
 
- Static Protected Member Functions inherited from TowerVR.TowerGameManagerImpl
static void LogMalformedEventContent (string eventName, int senderID)
 

Detailed Description

An ITowerGameManager that represents the master client's instance. This keeps track of the state as well.

Member Function Documentation

sealed override void TowerVR.MasterTowerGameManagerImpl.Awake ( )
protectedvirtual

Reimplemented from TowerVR.TowerGameManagerImpl.

void TowerVR.MasterTowerGameManagerImpl.handlePlaceTowerPieceEvent ( int  playerID,
float  posX,
float  posZ,
float  rotDegreesY 
)
protected
void TowerVR.MasterTowerGameManagerImpl.handlePlayerReadyEvent ( int  playerID)
protected

PhotonNetworkEvent handles ///.

void TowerVR.MasterTowerGameManagerImpl.handleSelectTowerPieceEvent ( int  playerID,
TowerPieceDifficulty  difficulty 
)
protected
void TowerVR.MasterTowerGameManagerImpl.handleTryStartGameEvent ( int  playerID)
protected
sealed override void TowerVR.MasterTowerGameManagerImpl.notifyIsReady ( )
virtual

Overrides the event-sending to directly alert this implementation.

Reimplemented from TowerVR.TowerGameManagerImpl.

sealed override void TowerVR.MasterTowerGameManagerImpl.onEvent ( byte  eventCode,
object  content,
int  senderID 
)
protectedvirtual

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

Reimplemented from TowerVR.TowerGameManagerImpl.

sealed override void TowerVR.MasterTowerGameManagerImpl.placeTowerPiece ( float  positionX,
float  positionZ,
float  rotationDegreesY 
)
virtual

Overrides the event-sending to directly alert this implementation.

Reimplemented from TowerVR.TowerGameManagerImpl.

sealed override void TowerVR.MasterTowerGameManagerImpl.selectTowerPiece ( TowerPieceDifficulty  difficulty)
virtual

Overrides the event-sending to directly alert this implementation.

Reimplemented from TowerVR.TowerGameManagerImpl.

sealed override void TowerVR.MasterTowerGameManagerImpl.tryStartGame ( )
virtual

Overrides the event-sending to directly alert this implementation.

Reimplemented from TowerVR.TowerGameManagerImpl.


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