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

import java.util.HashMap;

public class Team {
    public HashMap<Integer, Bullet> bullets = new HashMap<Integer, Bullet>(); // チームの弾の情報
    public HashMap<Integer, Magic> magics = new HashMap<Integer, Magic>(); // チームの魔法の情報
    public HashMap<Integer, Player> playerMap = new HashMap<Integer, Player>(); // チームのプレイヤー情報
    public boolean result; // 勝敗

    public HashMap<Integer, Bullet> getBullets() {
        return bullets;
    }

    public void setBullets(HashMap<Integer, Bullet> bullets) {
        this.bullets = bullets;
    }

    public HashMap<Integer, Magic> getMagics() {
        return magics;
    }

    public void setMagics(HashMap<Integer, Magic> magics) {
        this.magics = magics;
    }

    public HashMap<Integer, Player> getPlayerMap() {
        return playerMap;
    }

    public void setPlayerMap(HashMap<Integer, Player> playerMap) {
        this.playerMap = playerMap;
    }

    public boolean getResult() {
        return result;
    }

    public Player findPlayerById(int id) {
        return playerMap.get(id);
    }
}