Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (13 sloc)
462 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.hexworks.zircon.api.shape | |
/** | |
* A [ShapeFactory] is responsible for creating a single | |
* kind of shape (like a rectangle or a triangle) using | |
* a specialized version of [ShapeParameters]. | |
*/ | |
interface ShapeFactory<in T : ShapeParameters> { | |
/** | |
* Creates the [Shape] this [ShapeFactory] is responsible for building. | |
* Note that all [Shape]s are offset to the (0x0) position! | |
*/ | |
fun createShape(shapeParameters: T): Shape | |
} |