public abstract class CS15FruitNinjaGame
extends java.lang.Object
| Constructor and Description |
|---|
CS15FruitNinjaGame() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlade(CS15Blade blade)
A SUPPORT method that add the blade to the game graphically
and enables mouse interaction with it.
|
abstract java.lang.Object |
launchItem()
An ABSTRACT STENCIL method called every time an item (fruits and bombs) should be launched into the game.
|
void |
startGame()
A SUPPORT method that starts the game.
|
void |
updateChoppable(java.lang.Object object)
A STENCIL method that is called by the support code every few milliseconds
to ensure continuous movement and reactions.
|
public void addBlade(CS15Blade blade)
blade - The blade to addpublic abstract java.lang.Object launchItem()
public void startGame()
public void updateChoppable(java.lang.Object object)
object - object (Fruit/Bomb) to be updated