Class: Factory

Factory~ Factory


new Factory(entity, group, bounds [, limit])

Parameters:
Name Type Argument Description
entity any
group any
bounds Array
limit number <optional>
Source:

Methods


next(x, y, key) → {Entity}

This will return a new Entity if the number of existing Entities has not exceeded the limit.

Parameters:
Name Type Description
x number
y number
key any
Source:
Returns:
Type
Entity

next(x, y, key) → {Entity}

This will return a new Entity if the number of existing Entities has not exceeded the limit.

Parameters:
Name Type Description
x number
y number
key any
Source:
Returns:
Type
Entity

Class: Factory

Factory~ Factory


new Factory(entity, group, bounds [, limit])

Parameters:
Name Type Argument Description
entity any
group any
bounds Array
limit number <optional>
Source:

Methods


next(x, y, key) → {Entity}

This will return a new Entity if the number of existing Entities has not exceeded the limit.

Parameters:
Name Type Description
x number
y number
key any
Source:
Returns:
Type
Entity

next(x, y, key) → {Entity}

This will return a new Entity if the number of existing Entities has not exceeded the limit.

Parameters:
Name Type Description
x number
y number
key any
Source:
Returns:
Type
Entity