/// <summary> /// Draws the view of the square /// </summary> /// <param name="batch">SpriteBatch</param> /// <param name="textures">Textures</param> public void Draw(SpriteBatch batch, TextureLib textures) { if (Square.IsInBase()) { batch.Draw(textures[boardView.GetIndentAsset(Square.QuadrantValue - 4)], Rect, Color); } else if (Square.SquareValue == 0) { batch.Draw(textures[boardView.GetIndentAsset(Square.QuadrantValue)], Rect, Color); } else { batch.Draw(textures["indentBrown"], Rect, Color); } }
/// <summary> /// Draws the view /// </summary> /// <param name="batch">Sprite Batch</param> /// <param name="textures">Textures</param> public void Draw(SpriteBatch batch, TextureLib textures) { batch.Draw(textures[view.GetIndentAsset(Team)], Rect, Color); if (HasMarble) { batch.Draw(textures[view.GetMarbleAsset(Team)], Rect, Color); } }