Ejemplo n.º 1
0
        public override void DownButton()
        {
            int bpCredit;

            if (this.Value == this.Maximum && maxReached == false)
            {
                bpCredit = 25;
                character.BuildPointCost(character, bpCredit, false, true);
                bp.Text = character.buildPoints.ToString();
            }
            else if (this.Value == this.Minimum)
            {
                bp.Text = character.buildPoints.ToString();
            }
            else
            {
                bpCredit = 10;
                character.BuildPointCost(character, bpCredit, false, true);
                bp.Text = character.buildPoints.ToString();
            }
            base.DownButton();
        }
Ejemplo n.º 2
0
        public void GetRaceValues(Character character)
        {
            switch (character.race)
            {
            case "Human":
                character.agility        = humanAgility;
                character.body           = humanBody;
                character.strength       = humanStrength;
                character.reaction       = humanReaction;
                character.logic          = humanLogic;
                character.charisma       = humanCharisma;
                character.willpower      = humanWillpower;
                character.intuition      = humanIntuition;
                character.edge           = humanEdge;
                character.attributeMax   = humanAttributeMax;
                character.attributeAccum = humanAttributeAccum;
                character.BuildPointCost(character, humanAttributeCost, true, false);
                break;

            case "Ork": character.agility = orkAgility;
                character.body            = orkBody;
                character.strength        = orkStrength;
                character.reaction        = orkReaction;
                character.logic           = orkLogic;
                character.charisma        = orkCharisma;
                character.willpower       = orkWillpower;
                character.intuition       = orkIntuition;
                character.edge            = orkEdge;
                character.attributeMax    = orkAttributeMax;
                character.attributeAccum  = orkAttributeAccum;
                character.BuildPointCost(character, orkAttributeCost, true, false);
                break;

            case "Dwarf":
                character.agility        = dwarfAgility;
                character.body           = dwarfBody;
                character.strength       = dwarfStrength;
                character.reaction       = dwarfReaction;
                character.logic          = dwarfLogic;
                character.charisma       = dwarfCharisma;
                character.willpower      = dwarfWillpower;
                character.intuition      = dwarfIntuition;
                character.edge           = dwarfEdge;
                character.attributeMax   = dwarfAttributeMax;
                character.attributeAccum = dwarfAttributeAccum;
                character.BuildPointCost(character, orkAttributeCost, true, false);
                break;

            case "Elf":
                character.agility        = elfAgility;
                character.body           = elfBody;
                character.strength       = elfStrength;
                character.reaction       = elfReaction;
                character.logic          = elfLogic;
                character.charisma       = elfCharisma;
                character.willpower      = elfWillpower;
                character.intuition      = elfIntuition;
                character.edge           = elfEdge;
                character.attributeMax   = elfAttributeMax;
                character.attributeAccum = elfAttributeAccum;
                character.BuildPointCost(character, elfAttributeCost, true, false);
                break;

            case "Troll":
                character.agility        = trollAgility;
                character.body           = trollBody;
                character.strength       = trollStrength;
                character.reaction       = trollReaction;
                character.logic          = trollLogic;
                character.charisma       = trollCharisma;
                character.willpower      = trollWillpower;
                character.intuition      = trollIntuition;
                character.edge           = trollEdge;
                character.attributeMax   = trollAttributeMax;
                character.attributeAccum = trollAttributeAccum;
                character.BuildPointCost(character, trollAttributeCost, true, false);
                break;

            default: break;
            }
        }
Ejemplo n.º 3
0
 public void StoreValues(Character character, NewCharacter newchar)
 {
     switch(character.race)
     {
         case "Human":
             humanAgility = character.agility;
             humanStrength = character.strength;
             humanBody = character.body;
             humanReaction = character.reaction;
             humanLogic = character.logic;
             humanCharisma = character.charisma;
             humanWillpower = character.willpower;
             humanIntuition = character.intuition;
             humanEdge = character.edge;
             humanAttributeAccum = character.attributeAccum;
             humanAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, humanAttributeCost, false, false);
             humanAttributeMax = character.attributeMax;
             humanSwitch = true;
             break;
         case "Ork":
             orkAgility = character.agility;
             orkStrength = character.strength;
             orkBody = character.body;
             orkReaction = character.reaction;
             orkLogic = character.logic;
             orkCharisma = character.charisma;
             orkWillpower = character.willpower;
             orkIntuition = character.intuition;
             orkEdge = character.edge;
             orkAttributeAccum = character.attributeAccum;
             orkAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, orkAttributeCost, false, false);
             orkAttributeMax = character.attributeMax;
             orkSwitch = true;
             break;
         case "Dwarf":
             dwarfAgility = character.agility;
             dwarfStrength = character.strength;
             dwarfBody = character.body;
             dwarfReaction = character.reaction;
             dwarfLogic = character.logic;
             dwarfCharisma = character.charisma;
             dwarfWillpower = character.willpower;
             dwarfIntuition = character.intuition;
             dwarfEdge = character.edge;
             dwarfAttributeAccum = character.attributeAccum;
             dwarfAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, dwarfAttributeCost, false, false);
             dwarfAttributeMax = character.attributeMax;
             dwarfSwitch = true;
             break;
         case "Elf":
             elfAgility = character.agility;
             elfStrength = character.strength;
             elfBody = character.body;
             elfReaction = character.reaction;
             elfLogic = character.logic;
             elfCharisma = character.charisma;
             elfWillpower = character.willpower;
             elfIntuition = character.intuition;
             elfEdge = character.edge;
             elfAttributeAccum = character.attributeAccum;
             elfAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, elfAttributeCost, false, false);
             elfAttributeMax = character.attributeMax;
             elfSwitch = true;
             break;
         case "Troll":
             trollAgility = character.agility;
             trollStrength = character.strength;
             trollBody = character.body;
             trollReaction = character.reaction;
             trollLogic = character.logic;
             trollCharisma = character.charisma;
             trollWillpower = character.willpower;
             trollIntuition = character.intuition;
             trollEdge = character.edge;
             trollAttributeAccum = character.attributeAccum;
             trollAttributeCost = character.AttributeRaceSwitch(newchar, character);
             character.BuildPointCost(character, trollAttributeCost, false, false);
             trollAttributeMax = character.attributeMax;
             trollSwitch = true;
             break;
         default: break;
     }
 }
Ejemplo n.º 4
0
        public void StoreValues(Character character, NewCharacter newchar)
        {
            switch (character.race)
            {
            case "Human":
                humanAgility        = character.agility;
                humanStrength       = character.strength;
                humanBody           = character.body;
                humanReaction       = character.reaction;
                humanLogic          = character.logic;
                humanCharisma       = character.charisma;
                humanWillpower      = character.willpower;
                humanIntuition      = character.intuition;
                humanEdge           = character.edge;
                humanAttributeAccum = character.attributeAccum;
                humanAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, humanAttributeCost, false, false);
                humanAttributeMax = character.attributeMax;
                humanSwitch       = true;
                break;

            case "Ork":
                orkAgility        = character.agility;
                orkStrength       = character.strength;
                orkBody           = character.body;
                orkReaction       = character.reaction;
                orkLogic          = character.logic;
                orkCharisma       = character.charisma;
                orkWillpower      = character.willpower;
                orkIntuition      = character.intuition;
                orkEdge           = character.edge;
                orkAttributeAccum = character.attributeAccum;
                orkAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, orkAttributeCost, false, false);
                orkAttributeMax = character.attributeMax;
                orkSwitch       = true;
                break;

            case "Dwarf":
                dwarfAgility        = character.agility;
                dwarfStrength       = character.strength;
                dwarfBody           = character.body;
                dwarfReaction       = character.reaction;
                dwarfLogic          = character.logic;
                dwarfCharisma       = character.charisma;
                dwarfWillpower      = character.willpower;
                dwarfIntuition      = character.intuition;
                dwarfEdge           = character.edge;
                dwarfAttributeAccum = character.attributeAccum;
                dwarfAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, dwarfAttributeCost, false, false);
                dwarfAttributeMax = character.attributeMax;
                dwarfSwitch       = true;
                break;

            case "Elf":
                elfAgility        = character.agility;
                elfStrength       = character.strength;
                elfBody           = character.body;
                elfReaction       = character.reaction;
                elfLogic          = character.logic;
                elfCharisma       = character.charisma;
                elfWillpower      = character.willpower;
                elfIntuition      = character.intuition;
                elfEdge           = character.edge;
                elfAttributeAccum = character.attributeAccum;
                elfAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, elfAttributeCost, false, false);
                elfAttributeMax = character.attributeMax;
                elfSwitch       = true;
                break;

            case "Troll":
                trollAgility        = character.agility;
                trollStrength       = character.strength;
                trollBody           = character.body;
                trollReaction       = character.reaction;
                trollLogic          = character.logic;
                trollCharisma       = character.charisma;
                trollWillpower      = character.willpower;
                trollIntuition      = character.intuition;
                trollEdge           = character.edge;
                trollAttributeAccum = character.attributeAccum;
                trollAttributeCost  = character.AttributeRaceSwitch(newchar, character);
                character.BuildPointCost(character, trollAttributeCost, false, false);
                trollAttributeMax = character.attributeMax;
                trollSwitch       = true;
                break;

            default: break;
            }
        }
Ejemplo n.º 5
0
 public void GetRaceValues(Character character)
 {
     switch (character.race)
     {
         case "Human":
             character.agility = humanAgility;
             character.body = humanBody;
             character.strength = humanStrength;
             character.reaction = humanReaction;
             character.logic = humanLogic;
             character.charisma = humanCharisma;
             character.willpower = humanWillpower;
             character.intuition = humanIntuition;
             character.edge = humanEdge;
             character.attributeMax = humanAttributeMax;
             character.attributeAccum = humanAttributeAccum;
             character.BuildPointCost(character, humanAttributeCost, true, false);
             break;
         case "Ork": character.agility = orkAgility;
             character.body = orkBody;
             character.strength = orkStrength;
             character.reaction = orkReaction;
             character.logic = orkLogic;
             character.charisma = orkCharisma;
             character.willpower = orkWillpower;
             character.intuition = orkIntuition;
             character.edge = orkEdge;
             character.attributeMax = orkAttributeMax;
             character.attributeAccum = orkAttributeAccum;
             character.BuildPointCost(character, orkAttributeCost, true, false);
             break;
         case "Dwarf":
             character.agility   =   dwarfAgility;
             character.body      =   dwarfBody;
             character.strength  =   dwarfStrength;
             character.reaction  =   dwarfReaction;
             character.logic     =   dwarfLogic;
             character.charisma  =   dwarfCharisma;
             character.willpower =   dwarfWillpower;
             character.intuition =   dwarfIntuition;
             character.edge      =   dwarfEdge;
             character.attributeMax = dwarfAttributeMax;
             character.attributeAccum = dwarfAttributeAccum;
             character.BuildPointCost(character, orkAttributeCost, true, false);
             break;
         case "Elf":
             character.agility = elfAgility;
             character.body = elfBody;
             character.strength = elfStrength;
             character.reaction = elfReaction;
             character.logic = elfLogic;
             character.charisma = elfCharisma;
             character.willpower = elfWillpower;
             character.intuition = elfIntuition;
             character.edge = elfEdge;
             character.attributeMax = elfAttributeMax;
             character.attributeAccum = elfAttributeAccum;
             character.BuildPointCost(character, elfAttributeCost, true, false);
             break;
         case "Troll":
             character.agility   =   trollAgility;
             character.body      =   trollBody;
             character.strength  =   trollStrength;
             character.reaction  =   trollReaction;
             character.logic     =   trollLogic;
             character.charisma  =   trollCharisma;
             character.willpower =   trollWillpower;
             character.intuition =   trollIntuition;
             character.edge      =   trollEdge;
             character.attributeMax = trollAttributeMax;
             character.attributeAccum = trollAttributeAccum;
             character.BuildPointCost(character, trollAttributeCost, true, false);
             break;
         default: break;
     }
 }