mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 18:59:10 +00:00
docs: improve game loop
This commit is contained in:
@@ -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