mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-09 06:14:52 +00:00
docs: improve game loop
This commit is contained in:
1 parent
d6133e3bb0
commit
b55e85f8de
2 files changed
+50
-30
No files matched your search
@@ -24,22 +24,19 @@
|
||||
*/
|
||||
package com.iluwatar.gameloop;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* Bullet object class.
|
||||
*/
|
||||
public class Bullet {
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
private float position;
|
||||
|
||||
public Bullet() {
|
||||
position = 0.0f;
|
||||
}
|
||||
|
||||
public float getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(float position) {
|
||||
this.position = position;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user