TowerVR
1.0
|
Public Member Functions | |
void | notifyIsReady () |
void | tryStartGame () |
void | selectTowerPiece (TowerPieceDifficulty difficulty) |
void | placeTowerPiece (float positionX, float positionZ, float rotationDegreesY) |
Interface to the class that controls the game logic.
The class handles:
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).
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.