diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java b/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java index 518c7c6..a4f42de 100644 --- a/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java +++ b/core/src/main/java/kz/ilotterytea/frogartha/entities/PlayerEntity.java @@ -13,8 +13,8 @@ import kz.ilotterytea.frogartha.domain.client.ChangedDirectionAction; import kz.ilotterytea.frogartha.domain.client.PlayerJumpAction; public class PlayerEntity extends RenderableEntity { - private final Vector3 startPosition, endPosition; private final Camera camera; + private Vector3 startPosition, endPosition; private float jumpStrength, elapsedTime; private boolean isJumpKeyPressed, isJumping, lockJump; @@ -108,11 +108,11 @@ public class PlayerEntity extends RenderableEntity { isJumping = jumping; } - public void setStartPosition(Vector3 startPosition) { - this.startPosition.set(startPosition.x, startPosition.y, startPosition.z); + public void setStartPosition(Vector3 value) { + this.startPosition = value; } - public void setEndPosition(Vector3 endPosition) { - this.endPosition.set(endPosition.x, endPosition.y, endPosition.z); + public void setEndPosition(Vector3 value) { + this.endPosition = value; } } |
