示例#1
0
        protected void mapCharacToActivity(CharacterSheet cs)
        {
            TextView TxtViewCharName = FindViewById<TextView>(Resource.Id.textViewCharName);
            TxtViewCharName.Text = cs.Nom;

            TextView TxtViewCharClass = FindViewById<TextView>(Resource.Id.textViewCharClass);
            TxtViewCharClass.Text = cs.ClasseActuelle;

            TextView TxtViewCharRace = FindViewById<TextView>(Resource.Id.textViewCharRace);
            TxtViewCharRace.Text = cs.Race;

            TextView TxtViewCharNiveau = FindViewById<TextView>(Resource.Id.textViewCharNiveau);
            TxtViewCharNiveau.Text = cs.NiveauGlobal.ToString();

            GridView grdChar = FindViewById<GridView>(Resource.Id.gridViewCharac);
            ///grdChar.

        }
示例#2
0
        public static CharacterSheet Load()
        {
            CharacterSheet cs = new CharacterSheet();

            int force = 18;
            int dex = 18;
            int constit = 18;
            int intel = 18;
            int sag = 18;
            int cha = 18;

            cs.Nom = "Bob";
            cs.NiveauGlobal = 1;
            cs.Age = 32;
            cs.Alignement = "Chaotique Bon";
            cs.BonusInit = 3;
            cs.ClasseActuelle = "Guerrier";
            cs.Taille = "1m80";
            cs.TailleCategorie = "M";
            cs.TempPVMax = 0;
            cs.TempReflex = 0;
            cs.TempVigueur = 0;
            cs.TempVolonte = 0;
            cs.Reflex = 1;
            cs.Volonte = 2;
            cs.Vigueur = 3;

            cs.CompetenceInnee = new Dictionary<string, int>();
            cs.CompetenceInnee.Add("Saut",2);
            cs.CompetenceInnee.Add("Natation", 2);

            cs.CompetenceNonInnee = new Dictionary<string, int>();
            cs.CompetenceNonInnee.Add("Intimidation", 3);

            cs.Characs = new List<Charac>();
            cs.Characs.Add(new Charac(Constants.characteristics.Force, force, force, CoreRules.getBonus(force), CoreRules.getBonus(force)));
            cs.Characs.Add(new Charac(Constants.characteristics.Dext, dex, dex, CoreRules.getBonus(dex), CoreRules.getBonus(dex)));
            cs.Characs.Add(new Charac(Constants.characteristics.Const, constit, constit, CoreRules.getBonus(constit), CoreRules.getBonus(constit)));
            cs.Characs.Add(new Charac(Constants.characteristics.Int, intel, intel, CoreRules.getBonus(intel), CoreRules.getBonus(intel)));
            cs.Characs.Add(new Charac(Constants.characteristics.Sag, sag, sag, CoreRules.getBonus(sag), CoreRules.getBonus(sag)));
            cs.Characs.Add(new Charac(Constants.characteristics.Cha, cha, cha, CoreRules.getBonus(cha), CoreRules.getBonus(cha)));

            Arme epee = new Arme();
            epee.BonusAttaque = 0;
            epee.BonusDegat = 0;
            epee.Nom = "Epée a une main";
            epee.Quantite = 1;

            Attaque at1 = new Attaque();
            at1.BonusBase = 6;

            Attaque at2 = new Attaque();
            at2.BonusBase = 2;
            cs.ArmeEquipe = new List<Arme>();
            cs.AttaqueArme = new List<Tuple<Arme, Attaque>>();
            cs.Attaques = new Dictionary<int, Attaque>();
            cs.ArmeEquipe.Add(epee);
            cs.Attaques.Add(1,at1);
            cs.Attaques.Add(2,at2);
            cs.ClasseArmure = 25;
            cs.Divinité = "Heroneous";
            cs.Race = "Humain";
            cs.PVMax = 150;
            cs.PVActuel = 100;
            cs.TempPVMax = 10;
            cs.RM = 20;
            return cs;
        }
示例#3
0
        public static CharacterSheet Load()
        {
            CharacterSheet cs = new CharacterSheet();

            int force   = 18;
            int dex     = 18;
            int constit = 18;
            int intel   = 18;
            int sag     = 18;
            int cha     = 18;

            cs.Nom             = "Bob";
            cs.NiveauGlobal    = 1;
            cs.Age             = 32;
            cs.Alignement      = "Chaotique Bon";
            cs.BonusInit       = 3;
            cs.ClasseActuelle  = "Guerrier";
            cs.Taille          = "1m80";
            cs.TailleCategorie = "M";
            cs.TempPVMax       = 0;
            cs.TempReflex      = 0;
            cs.TempVigueur     = 0;
            cs.TempVolonte     = 0;
            cs.Reflex          = 1;
            cs.Volonte         = 2;
            cs.Vigueur         = 3;

            cs.CompetenceInnee = new Dictionary <string, int>();
            cs.CompetenceInnee.Add("Saut", 2);
            cs.CompetenceInnee.Add("Natation", 2);

            cs.CompetenceNonInnee = new Dictionary <string, int>();
            cs.CompetenceNonInnee.Add("Intimidation", 3);

            cs.Characs = new List <Charac>();
            cs.Characs.Add(new Charac(Constants.characteristics.Force, force, force, CoreRules.getBonus(force), CoreRules.getBonus(force)));
            cs.Characs.Add(new Charac(Constants.characteristics.Dext, dex, dex, CoreRules.getBonus(dex), CoreRules.getBonus(dex)));
            cs.Characs.Add(new Charac(Constants.characteristics.Const, constit, constit, CoreRules.getBonus(constit), CoreRules.getBonus(constit)));
            cs.Characs.Add(new Charac(Constants.characteristics.Int, intel, intel, CoreRules.getBonus(intel), CoreRules.getBonus(intel)));
            cs.Characs.Add(new Charac(Constants.characteristics.Sag, sag, sag, CoreRules.getBonus(sag), CoreRules.getBonus(sag)));
            cs.Characs.Add(new Charac(Constants.characteristics.Cha, cha, cha, CoreRules.getBonus(cha), CoreRules.getBonus(cha)));

            Arme epee = new Arme();

            epee.BonusAttaque = 0;
            epee.BonusDegat   = 0;
            epee.Nom          = "Epée a une main";
            epee.Quantite     = 1;

            Attaque at1 = new Attaque();

            at1.BonusBase = 6;

            Attaque at2 = new Attaque();

            at2.BonusBase  = 2;
            cs.ArmeEquipe  = new List <Arme>();
            cs.AttaqueArme = new List <Tuple <Arme, Attaque> >();
            cs.Attaques    = new Dictionary <int, Attaque>();
            cs.ArmeEquipe.Add(epee);
            cs.Attaques.Add(1, at1);
            cs.Attaques.Add(2, at2);
            cs.ClasseArmure = 25;
            cs.Divinité     = "Heroneous";
            cs.Race         = "Humain";
            cs.PVMax        = 150;
            cs.PVActuel     = 100;
            cs.TempPVMax    = 10;
            cs.RM           = 20;
            return(cs);
        }