public List<IMenuItem> CreateMenuList(GameEventListener i_MenuManager)
 {
     List<IMenuItem> menuItems = new List<IMenuItem>();
     menuItems.Add(new EffectsVolume(i_MenuManager));
     menuItems.Add(new MusicVolume(i_MenuManager));
     menuItems.Add(new ToggleSound(i_MenuManager));
     menuItems.Add(new Done(i_MenuManager));
     return menuItems;
 }
 public List<IMenuItem> CreateMenuList(GameEventListener i_MenuManager)
 {
     List<IMenuItem> menuItems = new List<IMenuItem>();
     menuItems.Add(new FullScreenMode(i_MenuManager));
     menuItems.Add(new WindowResizing(i_MenuManager));
     menuItems.Add(new MouseVisability(i_MenuManager));
     menuItems.Add(new Done(i_MenuManager));
     return menuItems;
 }
Beispiel #3
0
 public List<IMenuItem> CreateMenuList(GameEventListener i_MenuManager)
 {
     List<IMenuItem> menuItems = new List<IMenuItem>();
     menuItems.Add(new NumberOfPlayers(i_MenuManager));
     menuItems.Add(new ScreenOptions(i_MenuManager));
     menuItems.Add(new SoundOptions(i_MenuManager));
     menuItems.Add(new Play(i_MenuManager));
     menuItems.Add(new Quit(i_MenuManager));
     return menuItems;
 }
Beispiel #4
0
 public MenuManager(GameEventListener i_Listener)
 {
     r_EventListener = i_Listener;
     initMenuMap();
 }
Beispiel #5
0
 public Done(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
Beispiel #6
0
 protected MenuItem(GameEventListener i_Listener)
 {
     r_GameListener = i_Listener;
 }
Beispiel #7
0
 public void RegisterListener(GameEventListener listener)
 {
     listeners.Add(listener);
 }
 public static void registerListener(GameEventListener el)
 {
     listeners.Add(new WeakReference(el));
 }
Beispiel #9
0
 public Quit(GameEventListener i_MenuManager)
     : base(i_MenuManager)
 {
 }
Beispiel #10
0
 public FullScreenMode(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
Beispiel #11
0
 public EffectsVolume(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
Beispiel #12
0
 public WindowResizing(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
 public NumberOfPlayers(GameEventListener i_Manager)
     : base(i_Manager)
 {
 }
Beispiel #14
0
 public void UnregisterListener(GameEventListener listener)
 {
     listeners.Remove(listener);
 }
Beispiel #15
0
 public SoundOptions(GameEventListener i_MenuManager)
     : base(i_MenuManager)
 {
 }
Beispiel #16
0
 public MusicVolume(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
Beispiel #17
0
 public Play(GameEventListener i_MenuManager)
     : base(i_MenuManager)
 {
 }
Beispiel #18
0
 public ToggleSound(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
 public MouseVisability(GameEventListener i_Listener)
     : base(i_Listener)
 {
 }
 public static void unregisterListener(GameEventListener el)
 {
     listeners.RemoveAll(x => x.Target == el);
 }
Beispiel #21
0
 public void RemoveListener(GameEventListener listener)
 {
     listeners.Remove(listener);
 }