Wall
Extends:
A Wall is the basic element to create Rooms.
Walls consists of two half edges.
Constructor Summary
| Public Constructor | ||
| public |
constructor(start: *, end: *) Constructs a new wall. |
|
Member Summary
| Public Members | ||
| public |
Actions to be applied explicitly. |
|
| public |
backEdge: * Back is the plane from end to start. |
|
| public |
backTexture: * The back-side texture. |
|
| public |
Actions to be applied on removal. |
|
| public |
end: * |
|
| public |
frontEdge: * Front is the plane from start to end. |
|
| public |
frontTexture: * The front-side texture. |
|
| public |
height: * Wall height. |
|
| public |
id: * |
|
| public |
items: *[] Items attached to this wall |
|
| public |
Actions to be applied after movement. |
|
| public |
|
|
| public |
onItems: *[] |
|
| public |
|
|
| public |
start: * |
|
| public |
thickness: * Wall thickness. |
|
Method Summary
| Public Methods | ||
| public |
distanceFrom(point: *): * |
|
| public |
dontFireOnDelete(func: *) |
|
| public |
fireAction(action: *) |
|
| public |
|
|
| public |
fireOnAction(func: *) |
|
| public |
fireOnDelete(func: *) |
|
| public |
fireOnMove(func: *) |
|
| public |
|
|
| public |
getClosestCorner(point: *): * |
|
| public |
getEnd(): * |
|
| public |
getEndX(): * |
|
| public |
getEndY(): * |
|
| public |
getStart(): * |
|
| public |
getStartX(): * |
|
| public |
getStartY(): * |
|
| public |
getUuid(): * |
|
| public |
oppositeCorner(corner: *): * Return the corner opposite of the one provided. |
|
| public |
relativeMove(dx: *, dy: *) |
|
| public |
remove() |
|
| public |
|
|
| public |
setEnd(corner: *) |
|
| public |
setStart(corner: *) |
|
| public |
snapToAxis(tolerance: *) |
|
| public |
|
|
| public |
wallCenter(): * |
|
| public |
wallLength(): * |
|
Public Constructors
public constructor(start: *, end: *) source
Constructs a new wall.
Params:
| Name | Type | Attribute | Description |
| start | * | Start corner. |
|
| end | * | End corner. |
Public Members
public end: * source
public id: * source
public onItems: *[] source
public start: * source
Public Methods
public dontFireOnDelete(func: *) source
Params:
| Name | Type | Attribute | Description |
| func | * |
public fireAction(action: *) source
Params:
| Name | Type | Attribute | Description |
| action | * |
public fireMoved() source
public fireOnAction(func: *) source
Params:
| Name | Type | Attribute | Description |
| func | * |
public fireOnDelete(func: *) source
Params:
| Name | Type | Attribute | Description |
| func | * |
public fireOnMove(func: *) source
Params:
| Name | Type | Attribute | Description |
| func | * |
public fireRedraw() source
public oppositeCorner(corner: *): * source
Return the corner opposite of the one provided.
Params:
| Name | Type | Attribute | Description |
| corner | * | The given corner. |
Return:
| * | The opposite corner. |
public relativeMove(dx: *, dy: *) source
Params:
| Name | Type | Attribute | Description |
| dx | * | ||
| dy | * |
public remove() source
public resetFrontBack() source
public setEnd(corner: *) source
Params:
| Name | Type | Attribute | Description |
| corner | * |
public setStart(corner: *) source
Params:
| Name | Type | Attribute | Description |
| corner | * |
public snapToAxis(tolerance: *) source
Params:
| Name | Type | Attribute | Description |
| tolerance | * |