Exemple #1
0
 //also pass in array of textures (player dir movement) & an int (for which class
 //the player is?) - don't need anything the race
 public Player(int atk, int def, int con, Texture2D[]pS, int cI, string n, Skill a, Skill b)
 {
     playerStats = new PlayerStatistics(atk, def, con);
       playerSprites = pS;
       classIdentifier = cI;
       gold = 0;
       Name = n;
       skillA = a;
       skillB = b;
       isFainted = false;
       hasGone = false;
 }
Exemple #2
0
        public Player(int[]stats, Texture2D []partyMemberSprite, int cI, Skill a, Skill b)
        {
            playerSprites = partyMemberSprite;
              classIdentifier = cI;
              skillA = a;
              skillB = b;
              playerStats = new PlayerStatistics(stats[0], stats[1], stats[2]);

              if (cI == 1)
            Name = "WARRIOR";
              else if (cI == 2)
            Name = "PSIONIC";
              else
            Name = "SHOOTER";
        }