|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object group1.control.Controller group1.control.JeffController
public class JeffController
The controller for Jeff, the main character. Accepts keyboard inputs and sets values in the local Jeff object appropriately.
Constructor Summary | |
---|---|
JeffController(Jeff j)
Constructor. |
Method Summary | |
---|---|
void |
keyPressed(java.awt.event.KeyEvent e)
keyPressed method to implement KeyListener. |
void |
keyReleased(java.awt.event.KeyEvent e)
keyReleased method to implement KeyListener. |
Methods inherited from class group1.control.Controller |
---|
isActionPressed, isDownPressed, isJumpPressed, isLeftPressed, isRightPressed, isSelectPressed, isStartPressed, isUpPressed, keyTyped, wasActionHit, wasDownHit, wasJumpHit, wasLeftHit, wasRightHit, wasSelectHit, wasStartHit, wasUpHit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JeffController(Jeff j)
j
- A reference to the Jeff object in the game.Method Detail |
---|
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class Controller
e
- The KeyEvent caught.public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class Controller
e
- The KeyEvent caught.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |