public void update(long deltaMs) {
        if(mainLogic.currentState == GameLogic.GameState.PLAYING) {
            time += deltaMs;
            
            for(WeaponLocation wl : weaponLocations) {
                wl.update(deltaMs);
            }
        }
        
        if(playerLost) {
            Application.get().getEventManager().queueEvent(new GameStateChangeEvent(GameLogic.GameState.GAME_LOST));
        }
        
        //spawnEnemies(deltaMs);
        enemyManager.update(deltaMs);
        
        player.update(deltaMs);
        
        currentMouseAction.update(deltaMs);
        
        messaging.update(deltaMs);
    }