Пример #1
0
    public CharacterData(Character c, Action a)
    {
        //controlled
        scene = c.getScene();
        slot = c.getSlot();
        world = c.getWorld();
        levelUpsAvailable = c.getLevelUpsAvailable();
        experience = c.getExperience();
        hitDie = c.getHitDie();

        //!controlled
        expGive = c.getExpGive();
        friendly = c.getFriendly();
        talk = c.getTalk();

        //character
        race = c.getRace();
        alignment = c.getAlignment();
        affiliation = c.getAffiliation();
        profession = c.getProfession();
        title = c.getTitle();
        characterClass1 = c.getCharacterClass1();
        characterClass2 = c.getCharacterClass2();
        prestigeClass = c.getPrestigeClass();
        controlled = c.getControlled();

        //entity
        name = c.getName();
        level1 = c.getLevel1();
        level2 = c.getLevel2();
        prestigeLevel = c.getPrestigeLevel();
        totalLevel = c.getTotalLevel();
        strength = c.getStrength();
        dexterity = c.getDexterity();
        constitution = c.getConstitution();
        intelligence = c.getIntelligence();
        wisdom = c.getWisdom();
        charisma = c.getCharisma();
        initiativeBonus = c.getInitiativeBonus();
        hostile = c.getHostile();
        initSet = c.getInitSet();
        turn = c.getTurn();
        done = c.getDone();
        initiative = c.getInitiative();
        basicAttackBonus = c.getBasicAttackBonus();
        fortitude = c.getFortitude();
        reflex = c.getReflex();
        will = c.getWill();
        skill = c.getSkill();
        feat = c.getFeat();
        skillPoints = c.getSkillPoints();
        featPoints = c.getFeatPoints();
        classSkill = c.getClassSkill();
        xLocation = c.getXLocation();
        yLocation = c.getYLocation();
        xDirection = c.getXDirection();
        yDirection = c.getYDirection();
        inventory = c.getInventory();
        status = c.getStatus();

        //attackable
        currentHealth = c.getCurrentHealth();
        maxHealth = c.getMaxHealth();
        armorClass = c.getArmorClass();
        prefabName = c.getPrefabName();

        //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();
    }
Пример #2
0
    public AnimalData(Animal ani, Action a)
    {
        //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();
        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();

        //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();
    }