Class MagellanContext

  • All Implemented Interfaces:

    public class MagellanContext
    extends java.lang.Object
    implements MagellanEnvironment
    This class keeps all anchors to global resources e.g. EventDispatcher, Properties...
    • Constructor Detail

      • MagellanContext

        public MagellanContext​(Client client)
        Creates a context for the given client.
    • Method Detail

      • getClient

        public Client getClient()
        Returns the associated client.
      • getProperties

        public java.util.Properties getProperties()
        Returns the properties of Magellan.
        Specified by:
        getProperties in interface MagellanEnvironment
      • setProperties

        public void setProperties​(java.util.Properties p)
        Assigns the Properties for the client.
      • setEventDispatcher

        public void setEventDispatcher​(EventDispatcher d)
        d -
      • getGameData

        public GameData getGameData()
        Returns the current GameData.
      • setGameData

        public void setGameData​(GameData d)