public override void Draw(SpriteBatch spriteBatch) { DrawingUtils.DrawMessage( WoodCount.ToString() + "/" + "inf.", new Vector2(Position.X * Engine.TileWidth, Position.Y * Engine.TileWidth + YDrawOffset), Color.GreenYellow, false); base.Draw(spriteBatch); }
public override void Draw(SpriteBatch spriteBatch) { if (InConstruction) { string msg = string.Empty; if (!ResourcesSpent) { msg = WoodCount.ToString() + "/" + NB_REQUIRED_WOOD.ToString(); } else { msg = "Building..."; } DrawingUtils.DrawMessage( msg, new Vector2(Position.X * Engine.TileWidth, Position.Y * Engine.TileWidth + YDrawOffset), Color.GreenYellow, false ); } base.Draw(spriteBatch); }