public AnimalData(GameObject g) { Animal ani = g.GetComponent<Animal>(); Action a = g.GetComponent<Action>(); //animal species = ani.getSpecies(); //entity name = ani.getName(); level1 = ani.getLevel1(); level2 = ani.getLevel2(); prestigeLevel = ani.getPrestigeLevel(); totalLevel = ani.getTotalLevel(); strength = ani.getStrength(); dexterity = ani.getDexterity(); constitution = ani.getConstitution(); intelligence = ani.getIntelligence(); wisdom = ani.getWisdom(); charisma = ani.getCharisma(); initiativeBonus = ani.getInitiativeBonus(); hostile = ani.getHostile(); initSet = ani.getInitSet(); turn = ani.getTurn(); done = ani.getDone(); initiative = ani.getInitiative(); basicAttackBonus = ani.getBasicAttackBonus(); fortitude = ani.getFortitude(); reflex = ani.getReflex(); will = ani.getWill(); skill = ani.getSkill(); feat = ani.getFeat(); skillPoints = ani.getSkillPoints(); featPoints = ani.getFeatPoints(); featPoints = ani.getFeatPoints(); classSkill = ani.getClassSkill(); xLocation = ani.getXLocation(); yLocation = ani.getYLocation(); xDirection = ani.getXDirection(); yDirection = ani.getYDirection(); inventory = ani.getInventory(); status = ani.getStatus(); //attackable currentHealth = ani.getCurrentHealth(); maxHealth = ani.getMaxHealth(); armorClass = ani.getArmorClass(); prefabName = ani.getPrefabName(); //system transformLocationX = g.transform.position.x; transformLocationY = g.transform.position.y; //action standardAction = a.getStandardAction(); moveAction = a.getMoveAction(); freeAction = a.getFreeAction(); swiftAction = a.getSwiftAction(); immediateAction = a.getImmediateAction(); aoo = a.getAoo(); currentSpeed = a.getCurrentSpeed(); maxSpeed = a.getMaxSpeed(); moveLock = a.getMoveLock(); aooProvoked = a.getAooProvoked(); xEnd = a.getXEnd(); yEnd = a.getYEnd(); xDir = a.getXDir(); yDir = a.getYDir(); }
//sets //animal public void setSpecies(EnumList.Species i) { species = i; }
public AnimalData(EnumList.Species species, string name, int level1, int level2, int prestigeLevel, int totalLevel, int strength, int dexterity, int constitution, int intelligence, int wisdom, int charisma, int initiativeBonus, bool hostile, bool initSet, bool turn, bool done, int initiative, int[] basicAttackBonus, int fortitude, int reflex, int will, int[] skill, Feat[] feat, int skillPoints, int featPoints, bool[] classSkill, float xLocation, float yLocation, float xDirection, float yDirection, Inventory inventory, EnumList.Status status, int currentHealth, int maxHealth, int armorClass, string prefabName, int standardAction, int moveAction, int freeAction, int swiftAction, int immediateAction, int aoo, int currentSpeed, int maxSpeed, bool moveLock, bool aooProvoked, float xEnd, float yEnd, float xDir, float yDir) { //animal this.species = species; //entity this.name = name; this.level1 = level1; this.level2 = level2; this.prestigeLevel = prestigeLevel; this.totalLevel = totalLevel; this.strength = strength; this.dexterity = dexterity; this.constitution = constitution; this.intelligence = intelligence; this.wisdom = wisdom; this.charisma = charisma; this.initiativeBonus = initiativeBonus; this.hostile = hostile; this.initSet = initSet; this.turn = turn; this.done = done; this.initiative = initiative; this.basicAttackBonus = basicAttackBonus; this.fortitude = fortitude; this.reflex = reflex; this.will = will; this.skill = skill; this.feat = feat; this.skillPoints = skillPoints; this.featPoints = featPoints; this.classSkill = classSkill; this.xLocation = xLocation; this.yLocation = yLocation; this.xDirection = xDirection; this.yDirection = yDirection; this.inventory = inventory; this.status = status; //attackable this.currentHealth = currentHealth; this.maxHealth = maxHealth; this.armorClass = armorClass; this.prefabName = prefabName; //action this.standardAction = standardAction; this.moveAction = moveAction; this.freeAction = freeAction; this.swiftAction = swiftAction; this.immediateAction = immediateAction; this.aoo = aoo; this.currentSpeed = currentSpeed; this.maxSpeed = maxSpeed; this.moveLock = moveLock; this.aooProvoked = aooProvoked; this.xEnd = xEnd; this.yEnd = yEnd; this.xDir = xDir; this.yDir = yDir; }