Пример #1
0
 /// <summary>
 /// Inizializza un oggetto piazzabile in modo standard
 /// </summary>
 public Placeable()
 {
     this.tileType     = TileType.Placeable;
     coords            = new Pair <byte>(0, 0);
     orientation       = Orientation.Down;
     GChangerDirection = Orientation.Down;
     Type = TileConverter.FromStringSpecificType(TileType.Placeable, "Bronze Coin");
 }
Пример #2
0
 /// <summary>
 /// Costruisce un nemico standard, da modificare.
 /// </summary>
 public Enemy()
 {
     coords           = new Pair <byte>(0, 0);
     this.orientation = Orientation.Down;
     this.Type        = TileConverter.FromStringSpecificType(KulaLevel.TileType.Enemy, "Jumper");
     this.Range       = 1;
     this.Period      = 2000;
     this.tileType    = TileType.Enemy;
 }
Пример #3
0
 /// <summary>
 /// Crea un blocco standard, da modificare.
 /// </summary>
 public Block()
 {
     coords               = new Pair <byte>(0, 0);
     this.Type            = TileConverter.FromStringSpecificType(TileType.Block, "Normal");
     this.DisappearBegin  = 0;
     this.DisappearPeriod = 1000;
     this.tileType        = TileType.Block;
     surfs.Add(Orientation.Down, new Surface(KulaLevel.Orientation.Up));
     surfs.Add(Orientation.Up, new Surface(KulaLevel.Orientation.Down));
     surfs.Add(Orientation.Right, new Surface(KulaLevel.Orientation.Left));
     surfs.Add(Orientation.Left, new Surface(KulaLevel.Orientation.Right));
     foreach (Surface s in surfs.Values.ToArray <Surface>())
     {
         s.BindToBlock(this);
     }
     orientation = KulaLevel.Orientation.Down;
 }