Game-Design / Sprint3_actual / Text / NormalText.cs
NormalText.cs
Raw
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace Sprint3_actual.Text
{
    class NormalText : IText
    {
        private Vector2 posVector;
        private bool removed;
        private String text;

        public NormalText(String text, int xPos, int yPos)
        {
            this.removed = false;
            this.posVector = new Vector2(xPos, yPos);
            this.text = text;

        }

        public void DrawText()
        {

            GlobalVars.spriteBatch.DrawString(GlobalVars.font, text, posVector, Color.White);
        }

        public void UpdateText(GameTime gameTime)
        {
            // Nothing to update
        }

        public bool IsRemoved()
        {
            return removed;
        }
    }
}