Exemplo n.º 1
0
        public DrawableBase(Base theBase, bool ally)
			: base(theBase)
        {
			Position = new Vector2(theBase.Rectangle.X + theBase.Rectangle.Width / 2f,
			                       theBase.Rectangle.Bottom);

			LifeBar = new DrawableBaseLifeBar(ally) { 
				Position = new Vector2(0f,-250f),
				MaxHealth = theBase.MaxHealth,
				Health = theBase.Health };

			Diamond = null;
			ticks = 0;
        }
Exemplo n.º 2
0
        public DrawableBase(Base theBase, bool ally)
            : base(theBase)
        {
            Position = new Vector2(theBase.Rectangle.X + theBase.Rectangle.Width / 2f,
                                   theBase.Rectangle.Bottom);

            LifeBar = new DrawableBaseLifeBar(ally)
            {
                Position  = new Vector2(0f, -250f),
                MaxHealth = theBase.MaxHealth,
                Health    = theBase.Health
            };

            Diamond = null;
            ticks   = 0;
        }