Esempio n. 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;
 }
Esempio n. 2
0
 internal void RegisterCollision(SpriteCollisionCoordinator collisionCoordinator)
 {
     foreach (InvaderBase invader in m_InvaderRows)
       {
     collisionCoordinator.AddItem(invader,false);
     invader.CollisionCoordinator = collisionCoordinator;
       }
 }
Esempio n. 3
0
 public void RegisterCollision(SpriteCollisionCoordinator CollisionCoordinator)
 {
     CollisionCoordinator.AddItem(this,false);
 }