package org.ntlab.SproutServer.battles; import framework.model3D.Position3D; import framework.physics.Velocity3D; import javax.vecmath.Vector3d; /** * プレイヤー情報を更新するためのデータ * * @author matsumoto_k */ public class PlayerData { /* プレイヤーに関するデータ */ private Position3D userPosition = null; // プレイヤーの位置 private Vector3d userVector = null; // プレイヤー向き /* 武器に関するデータ */ private Position3D weaponPosition = null; // 武器の位置 private Vector3d weaponVector = null; // 武器の向き private Velocity3D weaponVelocity = null; // 武器の速度 public PlayerData() { } public boolean isWeaponShoot() { return weaponPosition != null; } public Position3D getUserPosition() { return userPosition; } public void setUserPosition(Position3D userPosition) { this.userPosition = userPosition; } public Vector3d getUserVector() { return userVector; } public void setUserVector(Vector3d userVector) { this.userVector = userVector; } public Position3D getWeaponPosition() { return weaponPosition; } public void setWeaponPosition(Position3D weaponPosition) { this.weaponPosition = weaponPosition; } public Vector3d getWeaponVector() { return weaponVector; } public void setWeaponVector(Vector3d weaponVector) { this.weaponVector = weaponVector; } public Velocity3D getWeaponVelocity() { return weaponVelocity; } public void setWeaponVelocity(Velocity3D weaponVelocity) { this.weaponVelocity = weaponVelocity; } }