|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.gameEngine.game.GameRelatedObject
vooga.gameEngine.controller.GameRelatedController
vooga.gameEngine.controller.AIController
public class AIController
AIController
is an GameRelatedController
which manages
GameItem
's that are affected by AI. As an
GameRelatedController
, it will store these items in a list. When the
AI has some change it would like to make, this class will update all relevant
items of the change.
Constructor Summary | |
---|---|
AIController()
|
Method Summary | |
---|---|
void |
addAIControlledListener(java.util.EventListener listener)
Adds the item that is controlled by the AI. |
void |
addItemToListenTo(GameRelatedObject listenTo)
Adds an item that is listened to by the AI, such as the ball in Pong. |
AbstractPlayer |
getListener()
Deprecated. |
void |
setDifficulty(int diff)
sets the AI's difficulty |
void |
setGame(java.lang.Class<?> C)
Initiates the AI, taking in the Class that is playing the game and sets up the logic. |
void |
unset()
called when the game is over. |
Methods inherited from class vooga.gameEngine.game.GameRelatedObject |
---|
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AIController()
Method Detail |
---|
public void setGame(java.lang.Class<?> C)
C
- @Deprecated public AbstractPlayer getListener()
public void addAIControlledListener(java.util.EventListener listener)
listener
- public void unset()
public void addItemToListenTo(GameRelatedObject listenTo)
listenTo
- public void setDifficulty(int diff)
diff
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |