projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring.
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
gui
/
humaninput
/
WorldNavigationTracker.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/WorldNavigationTracker.java
b/src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/WorldNavigationTracker.java
index
8c37c52
..
cc99c42
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/WorldNavigationTracker.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/gui/humaninput/WorldNavigationTracker.java
@@
-1,5
+1,5
@@
/*
/*
- * Sixth 3D engine. Copyright ©2012-201
7
, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. Copyright ©2012-201
8
, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
@@
-18,8
+18,8
@@
import java.awt.event.KeyEvent;
public class WorldNavigationTracker implements UserInputHandler {
@Override
public class WorldNavigationTracker implements UserInputHandler {
@Override
- public boolean before
ViewUpdate
(final ViewContext viewContext,
-
final int millisecondsSinceLastFrame) {
+ public boolean before
Render
(final ViewContext viewContext,
+ final int millisecondsSinceLastFrame) {
trackKeys(millisecondsSinceLastFrame, viewContext);
return false;
trackKeys(millisecondsSinceLastFrame, viewContext);
return false;
@@
-56,16
+56,16
@@
public class WorldNavigationTracker implements UserInputHandler {
* (1 + (avatar.getMovementSpeed() / 10));
if (inputTracker.isKeyPressed(KeyboardHelper.UP))
* (1 + (avatar.getMovementSpeed() / 10));
if (inputTracker.isKeyPressed(KeyboardHelper.UP))
- avatar.getMovement
Direction
().z += actualAcceleration;
+ avatar.getMovement
Vector
().z += actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.DOWN))
if (inputTracker.isKeyPressed(KeyboardHelper.DOWN))
- avatar.getMovement
Direction
().z -= actualAcceleration;
+ avatar.getMovement
Vector
().z -= actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.RIGHT))
if (inputTracker.isKeyPressed(KeyboardHelper.RIGHT))
- avatar.getMovement
Direction
().x += actualAcceleration;
+ avatar.getMovement
Vector
().x += actualAcceleration;
if (inputTracker.isKeyPressed(KeyboardHelper.LEFT))
if (inputTracker.isKeyPressed(KeyboardHelper.LEFT))
- avatar.getMovement
Direction
().x -= actualAcceleration;
+ avatar.getMovement
Vector
().x -= actualAcceleration;
avatar.enforceSpeedLimit();
}
avatar.enforceSpeedLimit();
}