GameControllerBase.cs 493 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. namespace sccdlib
  4. {
  5. public class GameControllerBase : ControllerBase
  6. {
  7. public GameControllerBase ()
  8. : base()
  9. {
  10. }
  11. public void update(double delta)
  12. {
  13. this.input_queue.decreaseTime(delta);
  14. foreach(Event e in this.input_queue.popDueEvents())
  15. this.broadcast (e);
  16. this.object_manager.stepAll(delta);
  17. }
  18. }
  19. }