/// <summary>
 /// konstruktor
 /// </summary>
 /// <param name="game">instance hry</param>
 /// <param name="x">poloha v hernim poli na ose x</param>
 /// <param name="y">poloha v hernim poli na ose y</param>
 public AbstractBonus(Game game, AbstractWall wall)
     : base(game)
 {
     base.modelPosition = new Vector3(wall.ModelPosition.X, 0, wall.ModelPosition.Z);
     boundingBox = new BoundingBox(new Vector3(modelPosition.X - 10, modelPosition.Y, modelPosition.Z - 10),
         new Vector3(modelPosition.X + 10, modelPosition.Y + 20, modelPosition.Z + 10));
 }
Exemplo n.º 2
0
 public void AddWall(AbstractWall wall)
 {
     walls.Add(wall);
 }
 public BombBonus(Game game, AbstractWall wall)
     : base(game, wall)
 {
 }
 public DoorBonus(Game game, AbstractWall wall)
     : base(game, wall)
 {
 }
 public SpeedBonus(Game game, AbstractWall wall)
     : base(game, wall)
 {
 }
 public FlameBonus(Game game, AbstractWall wall)
     : base(game, wall)
 {
 }