|
|||||||||
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.MouseControl
public class MouseControl
Built-in example of how to extend Control class properly. Also a usable mouse Controller creator.
Field Summary |
---|
Fields inherited from class vooga.engine.control.Control |
---|
entities, key, methodMap, methodParamMap, myGame, paramMap, paramTypes |
Constructor Summary | |
---|---|
MouseControl()
Default MouseControl constructor. |
|
MouseControl(Game game)
Constructor creates a MouseControl object for a specific Game |
|
MouseControl(java.util.List<java.lang.Object> initialEntities,
Game game)
Creates a MouseControl object with a number of players which it controls. |
|
MouseControl(java.lang.Object initialEntity,
Game game)
Creates a MouseControl 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 MouseControl()
public MouseControl(Game game)
game
- the Game to be controlled by this objectpublic MouseControl(java.lang.Object initialEntity, Game game)
initialEntity
- the Object to be controlledgame
- the Game to which the Objects belongpublic MouseControl(java.util.List<java.lang.Object> initialEntities, Game game)
initialEntities
- the players 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 |