diff --git a/src/main/java/cactusServer/entities/Bullet.java b/src/main/java/cactusServer/entities/Bullet.java index 021c408..e652933 100644 --- a/src/main/java/cactusServer/entities/Bullet.java +++ b/src/main/java/cactusServer/entities/Bullet.java @@ -5,11 +5,13 @@ import org.ntlab.radishforandroidstudio.framework.model3D.Quaternion3D; import cactusServer.models.BulletModelManager; +import net.arnx.jsonic.JSONHint; public class Bullet extends Entity3D { private String playerID; private Position3D position; private Quaternion3D angle; + private boolean isAlive = true; private Bullet() { // JSON�G���R�[�h���̌Ăяo���p @@ -34,6 +36,11 @@ public Quaternion3D getAngle() { return angle; } + + @JSONHint(ignore = true) + public boolean isAlive() { + return isAlive; + } public void setPlayerID(String playerID) { this.playerID = playerID; @@ -52,6 +59,11 @@ ((Object3D)this.placeable.getBody()).apply(angle, false); } } + + @JSONHint(ignore = true) + public void setAlive(boolean isAlive) { + this.isAlive = isAlive; + } public void update(Position3D position, Quaternion3D angle) { setPosition(position);