Ignore:
Timestamp:
07/03/08 16:48:09 (16 years ago)
Author:
bjn8
Message:

Added invalidation for graphics... biiiig commit. LOts of effeciency improvements - now can animate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r115 r121  
    1919import org.expeditee.gui.DisplayIO;
    2020import org.expeditee.gui.Frame;
    21 import org.expeditee.gui.FrameGraphics;
    2221import org.expeditee.gui.FrameIO;
    2322import org.expeditee.gui.FrameUtils;
     23import org.expeditee.gui.MessageBay;
    2424import org.expeditee.io.Conversion;
    2525import org.expeditee.io.Logger;
     
    315315                // check for protection on frame
    316316                if (ItemUtils.ContainsTag(source.getItems(), "@No" + mname)) {
    317                         FrameGraphics.DisplayMessage("Frame is protected by @No" + mname
     317                        MessageBay.displayMessage("Frame is protected by @No" + mname
    318318                                        + " tag.");
    319319                        return;
     
    365365                }
    366366                if (possibles.size() > 0) {
    367                         FrameGraphics.ErrorMessage("Incorrect parameters for " + mname);
     367                        MessageBay.errorMessage("Incorrect parameters for " + mname);
    368368                } else {
    369369                        assert (false);
    370                         FrameGraphics.ErrorMessage(mname + " action not found");
     370                        MessageBay.errorMessage(mname + " action not found");
    371371                }
    372372        }
     
    431431                        // if there is no constructor, return
    432432                        if (con == null) {
    433                                 FrameGraphics.DisplayMessage(INVALID_PARAMETERS_ERROR
     433                                MessageBay.displayMessage(INVALID_PARAMETERS_ERROR
    434434                                                + nameWithCorrectCase);
    435435                                // System.out.println("Constructor not found...");
     
    445445                        // check for errors during initialisation
    446446                        if (!_Agent.initialise(source)) {
    447                                 FrameGraphics.ErrorMessage("Error initialising agent: "
     447                                MessageBay.errorMessage("Error initialising agent: "
    448448                                                + nameWithCorrectCase);
    449449                                return;
     
    461461
    462462                } catch (ClassNotFoundException cnf) {
    463                         FrameGraphics.ErrorMessage(nameWithCorrectCase
     463                        MessageBay.errorMessage(nameWithCorrectCase
    464464                                        + "' is not an action or agent.");
    465465                } catch (Exception e) {
    466                         FrameGraphics.ErrorMessage("Error creating Agent: '"
     466                        MessageBay.errorMessage("Error creating Agent: '"
    467467                                        + nameWithCorrectCase + "'");
    468468                        System.out.println("Agent set to Null.");
     
    494494        public static void stopAgent() {
    495495                if (_Agent != null && _Agent.isRunning()) {
    496                         FrameGraphics.ErrorMessage("Stopping Agent...");
     496                        MessageBay.errorMessage("Stopping Agent...");
    497497                        _Agent.stop();
    498498                }
Note: See TracChangeset for help on using the changeset viewer.