コード例 #1
0
ファイル: RbySpecies.cs プロジェクト: stringflow/pokemon
 public RbySpecies(Rby game, byte indexNumber, ReadStream data) : this(game, indexNumber)
 {
     Game               = game;
     PokedexNumber      = data.u8();
     BaseHP             = data.u8();
     BaseAttack         = data.u8();
     BaseDefense        = data.u8();
     BaseSpeed          = data.u8();
     BaseSpecial        = data.u8();
     Type1              = (RbyType)data.u8();
     Type2              = (RbyType)data.u8();
     CatchRate          = data.u8();
     BaseExp            = data.u8();
     FrontSpriteWidth   = data.Nybble();
     FrontSpriteHeight  = data.Nybble();
     FrontSpritePointer = data.u16le();
     BackSpritePointer  = data.u16le();
     BaseMoves          = new RbyMove[] { Game.Moves[data.u8()],
                                          Game.Moves[data.u8()],
                                          Game.Moves[data.u8()],
                                          Game.Moves[data.u8()] };
     GrowthRate = (GrowthRate)data.u8();
     data.Seek(8); // TODO: HMs/TMs
 }
コード例 #2
0
ファイル: RbySpecies.cs プロジェクト: stringflow/pokemon
 public static bool IsSpecial(this RbyType type)
 {
     return(type >= RbyType.Fire);
 }