public class LabyrinthMovement
extends javafx.animation.AnimationTimer
Constructor and Description |
---|
LabyrinthMovement(Character c,
javafx.scene.Scene s) |
LabyrinthMovement(Character c,
javafx.scene.Scene s,
javafx.scene.input.KeyCode top,
javafx.scene.input.KeyCode back,
javafx.scene.input.KeyCode left,
javafx.scene.input.KeyCode right) |
Modifier and Type | Method and Description |
---|---|
Character |
getCHARACTER() |
javafx.scene.input.KeyCode |
getDown() |
javafx.scene.Scene |
getGAMESCENE() |
javafx.scene.input.KeyCode |
getLeft() |
javafx.scene.input.KeyCode |
getRight() |
javafx.scene.input.KeyCode |
getUp() |
void |
handle(long now) |
boolean |
isB_down() |
boolean |
isB_left() |
boolean |
isB_right() |
boolean |
isB_up() |
boolean |
isCollied_bottom() |
boolean |
isCollied_left() |
boolean |
isCollied_right() |
boolean |
isCollied_top() |
void |
setB_down(boolean b_down) |
void |
setB_left(boolean b_left) |
void |
setB_right(boolean b_right) |
void |
setB_up(boolean b_up) |
void |
setCollied_bottom(boolean collied_bottom) |
void |
setCollied_left(boolean collied_left) |
void |
setCollied_right(boolean collied_right) |
void |
setCollied_top(boolean collied_top) |
void |
setDown(javafx.scene.input.KeyCode down) |
void |
setLeft(javafx.scene.input.KeyCode left) |
void |
setRight(javafx.scene.input.KeyCode right) |
void |
setUp(javafx.scene.input.KeyCode up) |
public LabyrinthMovement(Character c, javafx.scene.Scene s)
c
- the Character for the movements
- the current Scenepublic LabyrinthMovement(Character c, javafx.scene.Scene s, javafx.scene.input.KeyCode top, javafx.scene.input.KeyCode back, javafx.scene.input.KeyCode left, javafx.scene.input.KeyCode right)
c
- the Character for the movements
- the current Scenetop
- the top Keyback
- the back Keyleft
- the left Keyright
- the right Keypublic void handle(long now)
handle
in class javafx.animation.AnimationTimer
public javafx.scene.input.KeyCode getUp()
public javafx.scene.input.KeyCode getDown()
public javafx.scene.input.KeyCode getLeft()
public javafx.scene.input.KeyCode getRight()
public boolean isB_up()
public boolean isB_down()
public boolean isB_left()
public boolean isB_right()
public Character getCHARACTER()
public javafx.scene.Scene getGAMESCENE()
public void setUp(javafx.scene.input.KeyCode up)
up
- set the KeyCode of uppublic void setDown(javafx.scene.input.KeyCode down)
down
- set the KeyCode of downpublic void setLeft(javafx.scene.input.KeyCode left)
left
- set the KeyCode of leftpublic void setRight(javafx.scene.input.KeyCode right)
right
- set the KeyCode of rightpublic void setB_up(boolean b_up)
b_up
- set boolean uppublic void setB_down(boolean b_down)
b_down
- set boolean downpublic void setB_left(boolean b_left)
b_left
- set boolean leftpublic void setB_right(boolean b_right)
b_right
- set boolean rightpublic boolean isCollied_top()
public void setCollied_top(boolean collied_top)
collied_top
- set the boolean toppublic boolean isCollied_bottom()
public void setCollied_bottom(boolean collied_bottom)
collied_bottom
- set the boolean bottompublic boolean isCollied_left()
public void setCollied_left(boolean collied_left)
collied_left
- set the boolean leftpublic boolean isCollied_right()
public void setCollied_right(boolean collied_right)
collied_right
- set the boolean right