Beispiel #1
0
        /// <summary>
        /// Instantiates a new EuropaConsole.
        /// </summary>
        public EuropaConsole(EuropaGame game)
        {
            this._game = game;

            this._background = game.GraphicsDevice.BlockColour(new Color(0.25f, 0.25f, 0.25f, 0.5f)); // dark grey, translucent
            this._spriteFont = game.GetFont();

            this._history = new List<string>() { "test oldest line", "test middle line", "test new line" };
            this._currentLine = string.Empty;
        }
Beispiel #2
0
        /// <summary>
        /// Instantiates a new EuropaConsole.
        /// </summary>
        public EuropaConsole(EuropaGame game)
        {
            this._game = game;

            this._background = game.GraphicsDevice.BlockColour(new Color(0.25f, 0.25f, 0.25f, 0.5f)); // dark grey, translucent
            this._spriteFont = game.GetFont();

            this._history = new List <string>()
            {
                "test oldest line", "test middle line", "test new line"
            };
            this._currentLine = string.Empty;
        }
Beispiel #3
0
 /// <summary>
 /// Instantiates a new actor.
 /// </summary>
 protected Actor(EuropaGame game)
 {
     this._game = game;
 }
Beispiel #4
0
 /// <summary>
 /// Instantiates a new Blob.
 /// </summary>
 /// <param name="colour">The colour of the blob.</param>
 public Blob(EuropaGame game, Color colour, Vector2 location)
     : base(game)
 {
     this._blobTexture = game.GraphicsDevice.BlockColour(colour);
     base._location    = location;
 }
Beispiel #5
0
 /// <summary>
 /// Instantiates a new Blob.
 /// </summary>
 /// <param name="colour">The colour of the blob.</param>
 public Blob(EuropaGame game, Color colour, Vector2 location)
     : base(game)
 {
     this._blobTexture = game.GraphicsDevice.BlockColour(colour);
     base._location = location;
 }
Beispiel #6
0
 /// <summary>
 /// Instantiates a new actor.
 /// </summary>
 protected Actor(EuropaGame game)
 {
     this._game = game;
 }