Exemple #1
0
 public Scene(string name)
 {
     m_Items = new List<CompareablePair<string, IDisplayedItem>>();
       m_BottomSprites = new LinkedList<Sprite>();
       m_TopSprites = new LinkedList<Sprite>();
       m_CollisionCoordinator = new SpriteCollisionCoordinator();
       SkipDrawDisplayedItems = false;
       SkipUpdateDisplayedItems = false;
       m_Name = name;
 }
 internal void RegisterCollision(SpriteCollisionCoordinator collisionCoordinator)
 {
     foreach (InvaderBase invader in m_InvaderRows)
       {
     collisionCoordinator.AddItem(invader,false);
     invader.CollisionCoordinator = collisionCoordinator;
       }
 }
Exemple #3
0
 public void RegisterCollision(SpriteCollisionCoordinator CollisionCoordinator)
 {
     CollisionCoordinator.AddItem(this,false);
 }