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