GameController Class
Class org.rapo.games.astro.GameController
Inheritance
>
GameController
Facilitates communication between game objects and the game's main timeline.
Subclassed from BaseGameController
| Property Summary |
|---|
| Timer | |
| Timer | |
| AudioController | |
| Timer | |
| Ship | |
| SoundtrackController | |
| Method Summary |
|---|
| Void | |
| Boolean | |
| Boolean | |
| Void | |
| Void | |
| Void | |
| Number | Returns current level. |
| Number | Returns level score. |
| Number | Returns total score. |
| Void | |
| Void | |
| Void | |
| Void | |
| Void | |
| Void | |
| Void | Sets current level. |
| Void | Sets totalScore. |
| Void | |
| Void | |
| Void | |
| Void | |
| Void | |
| Void | |
GameController
public function GameController(game_timeline:MovieClip, engine_clip:MovieClip)
crystalTimer
public var crystalTimer:Timer;
debrisTimer
public var debrisTimer:Timer;
effectsAudio
public var effectsAudio:AudioController;
powerupTimer
public var powerupTimer:Timer;
soundtrackAudio
public var soundtrackAudio:SoundtrackController;
checkCollision
public function checkCollision(object_array_id:String, projectile_array_id:String):Void
checkGameOver
public function checkGameOver():Boolean
checkLevelComplete
public function checkLevelComplete():Boolean
checkShipCollision
public function checkShipCollision(object_array_id:String):Void
destroyObjects
public function destroyObjects(array_id:String):Void
gameOver
public function gameOver():Void
getLevel
public function getLevel():Number
Returns current level.
Parameters:
getLevelScore
public function getLevelScore():Number
Returns level score.
Parameters:
getTotalScore
public function getTotalScore():Number
Returns total score.
Parameters:
handleInput
public function handleInput():Void
levelComplete
public function levelComplete():Void
levelStart
public function levelStart():Void
mainLoop
public function mainLoop():Void
moveObjects
public function moveObjects(array_id:String):Void
play
public function play():Void
setLevel
public function setLevel(value:Number):Void
Sets current level. Can be used by container to coerce game to play a given level.
Parameters:
setScore
public function setScore(value:Number):Void
Sets totalScore. Can be used by container to coerce game to play a given level.
Parameters:
spawnCrystals
public function spawnCrystals():Void
spawnDebris
public function spawnDebris():Void
spawnPowerups
public function spawnPowerups():Void
start
public function start():Void
title
public function title():Void
win
public function win():Void
Documentation generated by BLDoc Community Edition from B-Line Express.