C# Class Factories.DrawableFactory

Show file Open project: homoluden/fukami Class Usage Examples

Public Methods

Method Description
GetOrCreateColoredPolygonDrawable ( ColoredPolygon polygon, ShapeType shapeType = ShapeType.Mesh ) : ColoredPolygonDrawable
GetOrCreatePolygonDrawable ( Polygon polygon ) : PolygonDrawable

Private Methods

Method Description
DrawableFactory ( ) : System

Method Details

GetOrCreateColoredPolygonDrawable() public static method

public static GetOrCreateColoredPolygonDrawable ( ColoredPolygon polygon, ShapeType shapeType = ShapeType.Mesh ) : ColoredPolygonDrawable
polygon Shapes.Abstract.ColoredPolygon
shapeType ShapeType
return Drawables.ColoredPolygonDrawable

GetOrCreatePolygonDrawable() public static method

public static GetOrCreatePolygonDrawable ( Polygon polygon ) : PolygonDrawable
polygon Shapes.Abstract.Polygon
return Drawables.PolygonDrawable