Esempio n. 1
0
 public Pokemon3D(OnboardPokemon pokemon)
 {
     MeshGeometry3D mesh = new MeshGeometry3D();
       mesh.Positions = new Point3DCollectionConverter().ConvertFromString("0,0,-1 0,1,-1 1,0,-1 1,1,-1") as Point3DCollection;
       mesh.TriangleIndices = TRIANGLE_INDICES;
       mesh.TextureCoordinates = TEXTURE_COORDINATES;
       Model = new GeometryModel3D(mesh, new DiffuseMaterial(Brushes.Red));
 }
Esempio n. 2
0
 public static PokemonAdditionalInfo RivalAbilityNotify(OnboardPokemon pm)
 {
     PokemonAdditionalInfo info = new PokemonAdditionalInfo();
       info.Id = pm.Id;
       info.Ability = pm.Ability;
       info.receiversId = new int[0];
       return info;
 }
Esempio n. 3
0
 internal PokemonOutward(OnboardPokemon pm, PairValue hp)
 {
     _listeners = new List<IPokemonEvent>();
       OwnerId = pm.Owner.Id;
       Id = pm.Id;
       Hp = hp;
       Lv = pm.Lv;
       Position = pm.Position;
 }
Esempio n. 4
0
 public static PokemonAdditionalInfo OwnerMovesNotify(OnboardPokemon pm)
 {
     PokemonAdditionalInfo info = new PokemonAdditionalInfo();
       info.Id = pm.Id;
       info.MoveIds = new int[4];
       for (int i = 0; i < 4; i++)
     if (pm.Moves[i] != null) info.MoveIds[i] = pm.Moves[i].Id;
       info.receiversId = new int[] { pm.Owner.Id };
       return info;
 }
Esempio n. 5
0
File: Game.cs Progetto: sunoru/PBO
 bool IGame.Start()
 {
     if (((IGame)this).Prepared)
       {
     switch (Settings.Mode)
     {
       case GameMode.Single:
     turnBuilder.NewTurn();
     Board[0, 0] = new OnboardPokemon(Teams[0].Players[0].Pokemons[0], 0);
     turnBuilder.AddSendout(Teams[0].Players[0].Id, Board[0, 0].Id);
     Board[1, 0] = new OnboardPokemon(Teams[1].Players[0].Pokemons[0], 0);
     turnBuilder.AddSendout(Teams[1].Players[0].Id, Board[1, 0].Id);
     Turn(turnBuilder.GetLeapTurn()); //第0回合已经结束了
     CheckForNextTurn();
     break;
       default:
     return false;
     }
     return true;
       }
       return false;
 }