// Constructor public BattleFutureSightCommand( string pokemonID, string moveID, BattlePosition[] targetPositions, int turnsLeft = 0 ) { this.pokemonID = pokemonID; this.moveID = moveID; this.targetPositions = new List <BattlePosition>(); for (int i = 0; i < targetPositions.Length; i++) { this.targetPositions.Add(BattlePosition.Clone(targetPositions[i])); } this.turnsLeft = turnsLeft; }
// Constructor public BattleWishCommand( string pokemonID, string moveID, BattlePosition[] wishPositions, int turnsLeft = 0, int hpRecovered = 0 ) { this.pokemonID = pokemonID; this.moveID = moveID; this.wishPositions = new List <BattlePosition>(); for (int i = 0; i < wishPositions.Length; i++) { this.wishPositions.Add(BattlePosition.Clone(wishPositions[i])); } this.turnsLeft = turnsLeft; this.hpRecovered = hpRecovered; }