Exemplo n.º 1
0
 public static MouseEventListenerManager getInstance()
 {
     if (mouseManager == null)
     {
         mouseManager = new MouseEventListenerManager();
     }
     return(mouseManager);
 }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            base.Initialize();

            // Set up
            mapManager       = MapManager.getInstance();
            mouseManager     = MouseEventListenerManager.getInstance();
            uiManager        = UIManager.getInstance();
            materialsManager = Materials.getInstance();
            taskManager      = TaskManager.getInstance();
            tweenManager     = TweenManager.getInstance();

            // Set up GUI
            uiManager.init();
        }
Exemplo n.º 3
0
 public void onClickAction(EventHandler cusEvent)
 {
     MouseEventListenerManager.getInstance().addClickListener(this, cusEvent);
 }