vooga.engine.control
Class MouseControl

java.lang.Object
  extended by vooga.engine.control.Control
      extended by vooga.engine.control.MouseControl

public class MouseControl
extends Control

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

MouseControl

public MouseControl()
Default MouseControl constructor. Initializes a Control object with no data.


MouseControl

public MouseControl(Game game)
Constructor creates a MouseControl object for a specific Game

Parameters:
game - the Game to be controlled by this object

MouseControl

public MouseControl(java.lang.Object initialEntity,
                    Game game)
Creates a MouseControl object with a Game and a single Object which it controls.

Parameters:
initialEntity - the Object to be controlled
game - the Game to which the Objects belong

MouseControl

public MouseControl(java.util.List<java.lang.Object> initialEntities,
                    Game game)
Creates a MouseControl object with a number of players which it controls.

Parameters:
initialEntities - the players to be controlled
game - the Game to which the Objects belong
Method Detail

update

public void update()
Overrides:
update in class Control