コード例 #1
0
    public Character(Resources.Type type1,
                     Resources.Type type2,
                     string name,
                     Resources.Rank rank,
                     int level,
                     Stat originalStats,
                     Move[] currentMoves,
                     Dictionary <int, Move> allMoves,
                     Resources.Status status)
    {
        this.type1         = type1;
        this.type2         = type2;
        this.name          = name;
        this.rank          = rank;
        this.level         = level;
        this.originalStats = originalStats;
        this.currentStats  = new Stat(originalStats.getHp(), originalStats.getEnergy(), originalStats.getAtk(), originalStats.getSpatk(), originalStats.getDef(), originalStats.getSpdef(), originalStats.getSpd());
        this.currentMoves  = currentMoves;
        this.allMoves      = allMoves;
        this.status        = status;

        this.hpFactor     = 0;
        this.energyFactor = 0;
        this.atkFactor    = 0;
        this.spatkFactor  = 0;
        this.defFactor    = 0;
        this.spdefFactor  = 0;
        this.spdFactor    = 0;
    }
コード例 #2
0
 public void setRank(Resources.Rank rank)
 {
     this.rank = rank;
 }