|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvooga.engine.control.Control
vooga.engine.control.KeyboardControl
public class KeyboardControl
Built-in example of how to extend Control class properly. Also a usable keyboard Controller creator.
Field Summary |
---|
Fields inherited from class vooga.engine.control.Control |
---|
entities, key, methodMap, methodParamMap, myGame, paramMap, paramTypes |
Constructor Summary | |
---|---|
KeyboardControl()
Default KeyboardControl constructor. |
|
KeyboardControl(Game game)
Constructor creates a KeyboardControl object for a specific Game |
|
KeyboardControl(java.util.List<java.lang.Object> entities,
Game game)
Creates a KeyboardControl object with a number of objects which it controls. |
|
KeyboardControl(java.lang.Object entity,
Game game)
Creates a KeyboardControl object with a Game and a single Object which it controls. |
Method Summary | |
---|---|
void |
update()
|
Methods inherited from class vooga.engine.control.Control |
---|
addInput, changeKey, initializeMappings, setParams, setParams, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyboardControl()
public KeyboardControl(Game game)
game
- the Game to be controlled by this objectpublic KeyboardControl(java.lang.Object entity, Game game)
initialEntity
- the Object to be controlledgame
- the Game to which the Object belongspublic KeyboardControl(java.util.List<java.lang.Object> entities, Game game)
initialEntities
- the Objects to be controlledgame
- the Game to which the Objects belongMethod Detail |
---|
public void update()
update
in class Control
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |