Package megamek.common

Examples of megamek.common.GameTurn


        if (!clientgui.bv.isMovingUnits()) {
            clientgui.setDisplayVisible(true);
        }

        GameTurn turn = client.getMyTurn();
        // There's special processing for triggering AP Pods.
        if ((turn instanceof GameTurn.TriggerAPPodTurn)
                && (null != ce())) {
            disableButtons();
            TriggerAPPodDialog dialog = new TriggerAPPodDialog(clientgui
View Full Code Here


            }

            // draw Drop Zone
            if (null != m_client && null != m_game) { // sanity check!
                if (IGame.Phase.PHASE_DEPLOYMENT == m_game.getPhase()) {
                    GameTurn turn = m_game.getTurn();
                    if (turn != null
                            && turn.getPlayerNum() == m_client.getLocalPlayer()
                                    .getId()) {
                        for (int j = 0; j < m_game.getBoard().getWidth(); j++) {
                            for (int k = 0; k < m_game.getBoard().getHeight(); k++) {
                                if (m_game.getBoard().isLegalDeployment(
                                        new Coords(j, k),
View Full Code Here

            }

            // draw Drop Zone
            if (null != m_client && null != m_game) { // sanity check!
                if (IGame.Phase.PHASE_DEPLOYMENT == m_game.getPhase()) {
                    GameTurn turn = m_game.getTurn();
                    if (turn != null
                            && turn.getPlayerNum() == m_client.getLocalPlayer()
                                    .getId()) {
                        for (int j = 0; j < m_game.getBoard().getWidth(); j++) {
                            for (int k = 0; k < m_game.getBoard().getHeight(); k++) {
                                if (m_game.getBoard().isLegalDeployment(
                                        new Coords(j, k),
View Full Code Here

        if (!clientgui.bv.isMovingUnits()) {
            clientgui.setDisplayVisible(true);
        }

        GameTurn turn = client.getMyTurn();
        // There's special processing for triggering AP Pods.
        if (turn instanceof GameTurn.TriggerAPPodTurn && null != ce()) {
            disableButtons();
            TriggerAPPodDialog dialog = new TriggerAPPodDialog(clientgui
                    .getFrame(), ce());
View Full Code Here

    /**
     * Does turn start stuff
     */
    private void beginMyTurn() {
        GameTurn turn = client.getMyTurn();
        // There's special processing for countering break grapple.
        if (turn instanceof GameTurn.CounterGrappleTurn) {
            disableButtons();
            selectEntity(((GameTurn.CounterGrappleTurn) turn).getEntityNum());
            grapple(true);
View Full Code Here

    /**
     * Does turn start stuff
     */
    private void beginMyTurn() {
        GameTurn turn = client.getMyTurn();
        // There's special processing for countering break grapple.
        if (turn instanceof GameTurn.CounterGrappleTurn) {
            disableButtons();
            selectEntity(((GameTurn.CounterGrappleTurn) turn)
                    .getEntityNum());
View Full Code Here

        if (!clientgui.bv.isMovingUnits()) {
            clientgui.setDisplayVisible(true);
        }

        GameTurn turn = client.getMyTurn();
        // There's special processing for triggering AP Pods.
        if (turn instanceof GameTurn.TriggerAPPodTurn
                && null != ce()) {
            disableButtons();
            TriggerAPPodDialog dialog = new TriggerAPPodDialog(clientgui
View Full Code Here

TOP

Related Classes of megamek.common.GameTurn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.