diff --git a/src/main/java/cactusServer/entities/Bullet.java b/src/main/java/cactusServer/entities/Bullet.java new file mode 100644 index 0000000..c81b447 --- /dev/null +++ b/src/main/java/cactusServer/entities/Bullet.java @@ -0,0 +1,49 @@ +package cactusServer.entities; + +import org.ntlab.radishforandroidstudio.framework.model3D.Position3D; +import org.ntlab.radishforandroidstudio.framework.model3D.Quaternion3D; + +public class Bullet extends Entity3D { + private String playerID; + private Position3D position; + private Quaternion3D angle; + + private Bullet() { + // JSON�G���R�[�h���̌Ăяo���p + } + + public Bullet(String playerID, Position3D position, Quaternion3D angle) { + this.playerID = playerID; + this.position = position; + this.angle = angle; + } + + public String getPlayerID() { + return playerID; + } + + public Position3D getPosition() { + return position; + } + + public Quaternion3D getAngle() { + return angle; + } + + public void setPlayerID(String playerID) { + this.playerID = playerID; + } + + public void setPosition(Position3D positon) { + this.position = positon; + } + + public void setAngle(Quaternion3D angle) { + this.angle = angle; + } + + public void update(Position3D position, Quaternion3D angle) { + setPosition(position); + setAngle(angle); + } +}