Newer
Older
RxSprout / app / src / main / java / com / example / sprout / battles / PlayerData.java
package com.example.sprout.battles;

import framework.model3D.Position3D;
import framework.physics.Velocity3D;
import java3d.Vector3d;

/**
 * バトル中のプレイヤーの情報データ
 */
public class PlayerData {
    /* プレイヤーに関するデータ */
    private Position3D userPosition = null; // プレイヤーの位置
    private Vector3d userVector = null; // プレイヤー向き

    /* 武器に関するデータ */
    private Position3D weaponPosition = null; // 武器の位置
    private Vector3d weaponVector = null; // 武器の向き
    private Velocity3D weaponVelocity = null; // 武器の速度

    /*結果の送信*/
    private boolean resultReceive = false;

    public PlayerData() {
    }

    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 bulletPosition) {
        this.weaponPosition = bulletPosition;
    }

    public Vector3d getWeaponVector() {
        return weaponVector;
    }

    public void setWeaponVector(Vector3d bulletVector) {
        this.weaponVector = bulletVector;
    }

    public Velocity3D getWeaponVelocity() {
        return weaponVelocity;
    }

    public void setWeaponVelocity(Velocity3D bulletVelocity) {
        this.weaponVelocity = bulletVelocity;
    }

    public boolean getResultReceive() {
        return resultReceive;
    }

    public void setResultReceive(boolean resultReceive) {
        this.resultReceive = resultReceive;
    }
}