TowerVR  1.0
TowerVR.ITowerGameManager Interface Reference
Inheritance diagram for TowerVR.ITowerGameManager:
TowerVR.TowerGameManager TowerVR.TowerGameManagerImpl TowerVR.MasterTowerGameManagerImpl

Public Member Functions

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

Detailed Description

Interface to the class that controls the game logic.

The class handles:

  • Game state: is the game running? Has it ended?
  • Turn state: what action is the current player doing?
  • Turn order: In what order does the players play? Has anyone lost yet?
  • Scores

The implementing class is either a local instance (if the current client is the master client), or a remote instance (if the current client is NOT the master client).

Member Function Documentation

void TowerVR.ITowerGameManager.notifyIsReady ( )

Call this to notify that this client is ready to start the game.

Implemented in TowerVR.MasterTowerGameManagerImpl, TowerVR.TowerGameManagerImpl, and TowerVR.TowerGameManager.

void TowerVR.ITowerGameManager.placeTowerPiece ( float  positionX,
float  positionZ,
float  rotationDegreesY 
)

Call this to place a tower piece. Will fail silently if it is not the client's turn.

Implemented in TowerVR.MasterTowerGameManagerImpl, TowerVR.TowerGameManagerImpl, and TowerVR.TowerGameManager.

void TowerVR.ITowerGameManager.selectTowerPiece ( TowerPieceDifficulty  difficulty)

Call to select a piece to place

Implemented in TowerVR.MasterTowerGameManagerImpl, TowerVR.TowerGameManagerImpl, and TowerVR.TowerGameManager.

void TowerVR.ITowerGameManager.tryStartGame ( )

Tries to start the game. Will fail silently. If it succeeds the client will be alerted through its GameStateChangedHandler.

Implemented in TowerVR.MasterTowerGameManagerImpl, TowerVR.TowerGameManagerImpl, and TowerVR.TowerGameManager.


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