Grids
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
entityGrid: *[] |
|
public |
itemGrid: *[] |
|
public |
map: * |
|
public |
pathingGrid: *[] |
|
public |
renderingGrid: *[] |
Method Summary
Public Methods | ||
public |
addToEntityGrid(entity: *, x: *, y: *) |
|
public |
addToItemGrid(item: *, x: *, y: *) |
|
public |
addToPathingGrid(x: *, y: *) |
|
public |
addToRenderingGrid(entity: *, x: *, y: *) |
|
public |
checkPathingGrid(player: *, xRadius: *, yRadius: *) |
|
public |
|
|
public |
removeEntity(entity: *) |
|
public |
removeFromEntityGrid(entity: *, x: *, y: *) |
|
public |
removeFromItemGrid(item: *, x: *, y: *) |
|
public |
removeFromPathingGrid(x: *, y: *) |
|
public |
removeFromRenderingGrid(entity: *, x: *, y: *) |
|
public |
|
Public Constructors
public constructor() source
Public Members
public entityGrid: *[] source
public itemGrid: *[] source
public map: * source
public pathingGrid: *[] source
public renderingGrid: *[] source
Public Methods
public addToEntityGrid(entity: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
entity | * | ||
x | * | ||
y | * |
public addToItemGrid(item: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
item | * | ||
x | * | ||
y | * |
public addToPathingGrid(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public addToRenderingGrid(entity: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
entity | * | ||
x | * | ||
y | * |
public checkPathingGrid(player: *, xRadius: *, yRadius: *) source
Params:
Name | Type | Attribute | Description |
player | * | ||
xRadius | * | ||
yRadius | * |
public loadGrids() source
public removeEntity(entity: *) source
Params:
Name | Type | Attribute | Description |
entity | * |
public removeFromEntityGrid(entity: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
entity | * | ||
x | * | ||
y | * |
public removeFromItemGrid(item: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
item | * | ||
x | * | ||
y | * |
public removeFromPathingGrid(x: *, y: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * |
public removeFromRenderingGrid(entity: *, x: *, y: *) source
Params:
Name | Type | Attribute | Description |
entity | * | ||
x | * | ||
y | * |