GameController Class

Class org.rapo.games.astro.GameController

Inheritance > GameController

Facilitates communication between game objects and the game's main timeline. Subclassed from BaseGameController
Constructor Summary
  
 GameController(game_timeline:MovieClip, engine_clip:MovieClip)
Property Summary
 Timer 
 Timer 
 AudioController 
 Timer 
 Ship 
 SoundtrackController 
Method Summary
 Void 
 checkCollision(object_array_id:String, projectile_array_id:String)
 Boolean 
 Boolean 
 Void 
 checkShipCollision(object_array_id:String)
 Void 
 destroyObjects(array_id:String)
 Void 
 Number 
Returns current level.
 Number 
Returns level score.
 Number 
Returns total score.
 Void 
 Void 
 Void 
 Void 
 Void 
 moveObjects(array_id:String)
 Void 
 play()
 Void 
 setLevel(value:Number)
Sets current level.
 Void 
 setScore(value:Number)
Sets totalScore.
 Void 
 Void 
 Void 
 Void 
 start()
 Void 
 title()
 Void 
 win()
Constructor Detail
GameController
public function GameController(game_timeline:MovieClip, engine_clip:MovieClip)
Property Detail
crystalTimer
public var crystalTimer:Timer;
debrisTimer
public var debrisTimer:Timer;
effectsAudio
public var effectsAudio:AudioController;
powerupTimer
public var powerupTimer:Timer;
ship
public var ship:Ship;
soundtrackAudio
public var soundtrackAudio:SoundtrackController;
Method Detail
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.