public NonPlayer(String name, String sex, int gold, int level, Archetype archetype, MoveSet moveSet, String type, BaseStat baseStat, BattleStatus battleStatus, Item item, String id) { CharacterName = name; CharacterSex = sex; CharacterGold = gold; CharacterLevel = level; CharacterArchetype = archetype; CharacterMoveSet = moveSet; CharacterBaseStat = baseStat; CharacterBattleStatus = battleStatus; CharacterItem = item; SetCharacterType(type); CharacterID = id; }
private Move MakeCounterMove(MySqlDataReader reader, Move moveTwo, String name, String description, int level, String archetype, int energyPoints) { //primary_move_target, primary_move_accuracy, power_percent String primaryMoveTarget = reader.GetString("primary_move_target"); double primaryMoveAccuracy = reader.GetDouble("primary_move_accuracy"); double powerPercent = reader.GetDouble("power_percent"); ArchetypeID archetypeID = Archetype.GetArchetypeID(archetype); Move move = null; if (moveTwo == null) { move = new CounterMove(name, description, powerPercent, primaryMoveAccuracy, primaryMoveTarget, level, archetypeID, energyPoints, energyPoints); } else { move = new CounterMove(moveTwo, name, description, powerPercent, primaryMoveAccuracy, primaryMoveTarget, level, archetypeID, energyPoints, energyPoints); } return(move); }