Exemple #1
0
 public TrainerData(TrainerTypes trainer, string name = null)        //, Inventory.Items[] items = null)
 {
     ID        = trainer;
     TrainerID = Core.Rand.Next(1000000);            //random number between 0 and 999999, including 0
     SecretID  = Core.Rand.Next(1000000);            //random number between 0 and 999999, including 0
     //if(trainer != TrainerTypes.Player && string.IsNullOrEmpty(name)
     //if(trainer != TrainerTypes.WildPokemon
     Name = name ?? ID.ToString();
     //Items = items ?? new Inventory.Items[0];
     //Party = new Pokemon[]
     //{
     //	new Pokemon(Pokemons.NONE),
     //	new Pokemon(Pokemons.NONE),
     //	new Pokemon(Pokemons.NONE),
     //	new Pokemon(Pokemons.NONE),
     //	new Pokemon(Pokemons.NONE),
     //	new Pokemon(Pokemons.NONE)
     //};
     Gender = trainer == TrainerTypes.PLAYER ? (bool?)null : Game.TrainerMetaData[trainer].Gender;
     //Double =				false;
     //Double =              Game.TrainerMetaData[trainer].Double;
     //BaseMoney =           Game.TrainerMetaData[trainer].BaseMoney;
     //AI =                  Game.TrainerMetaData[trainer].SkillLevel;
     //BattleBGM =           Game.TrainerMetaData[trainer].BattleBGM;
     //VictoryBGM =			Game.TrainerMetaData[trainer].VictoryBGM;
     //IntroME =				Game.TrainerMetaData[trainer].IntroME;
 }
Exemple #2
0
 public Trainer(string name, TrainerTypes trainertype)
 {
     this.name        = name;
     @language        = Game.pbGetLanguage();
     this.trainertype = trainertype;
     @id       = Core.Rand.Next(256);
     @id      |= Core.Rand.Next(256) << 8;
     @id      |= Core.Rand.Next(256) << 16;
     @id      |= Core.Rand.Next(256) << 24;
     @metaID   = 0;
     @outfit   = 0;
     @pokegear = false;
     @pokedex  = false;
     clearPokedex();
     //@shadowcaught=new bool[0];
     //for (int i = 1; i < Game.PokemonData.Count; i++) {
     //  @shadowcaught[i]=false;
     //}
     @shadowcaught = new List <Pokemons>();
     @badges       = new bool[0];
     for (int i = 0; i < 8; i++)
     {
         @badges[i] = false;
     }
     @money = Core.INITIALMONEY;
     @party = new Monster.Pokemon[Core.MAXPARTYSIZE];
 }
Exemple #3
0
 public TrainerMetaData(TrainerTypes id, bool @double, byte baseMoney = 0, bool?gender = null, byte skillLevel = 0, int?skillCodes = null, int introME = 0, int battleBGM = 0, int victoryBGM = 0, string scriptIdle = null, string scriptBattleIntro = null, string scriptBattleEnd = null)
 {
     ID                = id;
     Double            = @double;
     BaseMoney         = baseMoney;
     Gender            = gender;
     SkillLevel        = skillLevel;
     SkillCodes        = skillCodes;
     IntroME           = introME;
     BattleBGM         = battleBGM;
     VictoryBGM        = victoryBGM;
     ScriptIdle        = scriptIdle;
     ScriptBattleIntro = scriptBattleIntro;
     ScriptBattleEnd   = scriptBattleEnd;
 }