Blueprint
Static Method Summary
| Static Public Methods | ||
| public static |
Creates a new blueprint from the given entity uids |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(entities: Array<Entity>) |
|
Member Summary
| Public Members | ||
| public |
entities: * |
|
| public get |
layer: Layer: * Returns the layer of this blueprint |
|
Method Summary
| Public Methods | ||
| public |
|
|
| public |
Checks if the blueprint can be placed at the given tile |
|
| public |
draw(parameters: DrawParameters) Draws the blueprint at the given origin |
|
| public |
getCost(): * Returns the cost of this blueprint in shapes |
|
| public |
Rotates the blueprint counter clock wise |
|
| public |
rotateCw() Rotates the blueprint clockwise |
|
| public |
Attempts to place the blueprint at the given tile |
|
Static Public Methods
Public Constructors
Public Members
public entities: * source
Public Methods
public canAfford(root: GameRoot): * source
Params:
| Name | Type | Attribute | Description |
| root | GameRoot |
Return:
| * |
public canPlace(root: GameRoot, tile: Vector): * source
Checks if the blueprint can be placed at the given tile
Return:
| * |
public draw(parameters: DrawParameters) source
Draws the blueprint at the given origin
Params:
| Name | Type | Attribute | Description |
| parameters | DrawParameters |
