Пример #1
0
        private void shardDissolve(MeteoriteShard shard)
        {
            int randNum = meteoriteSentry.Random.Next(100);

            meteoriteSentry.ShardKilledEverything((shard.X, shard.Y));
            meteoriteSentry.ShardBecameSomething((shard.X, shard.Y));
            DeleteShard(shard);
        }
Пример #2
0
        private void firstTick()
        {
            MeteoriteShard firstShard = new MeteoriteShard(midX, midY, this);

            CreateShard(firstShard);
        }
Пример #3
0
 public void DeleteShard(MeteoriteShard shard)
 {
     meteoriteSentry.ShardWasDestroyedOnCell(shard);
     MeteoriteShards.Remove(MeteoriteShards.Find(probablyThisShard => probablyThisShard.ID == shard.ID));
 }
Пример #4
0
 public void CreateShard(MeteoriteShard shard)
 {
     MeteoriteShards.Add(shard);
     meteoriteSentry.ShardWasMadeOnCell(shard);
 }