tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
damaged(ctx: ?, p: ?, st: ?, amount: ?, info: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| amount | ? | |
| info | ? | |
damaged(ctx: ?, p: ?, st: ?, amount: ?, info: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| amount | ? | |
| info | ? | |
start(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
stop(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
start(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
stop(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
death(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
start(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
stop(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
death(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
stop(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
damaged(ctx: ?, p: ?, st: ?, amount: ?, info: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| amount | ? | |
| info | ? | |
hit(ctx: ?, p: ?, st: ?, target: ?, amount: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| target | ? | |
| amount | ? | |
allyDied(ctx: ?, p: ?, st: ?, ally: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| ally | ? | |
tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
start(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
tick(ctx: ?, p: ?, st: ?, dt: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| dt | ? | |
damaged(ctx: ?, p: ?, st: ?, amount: ?, info: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| amount | ? | |
| info | ? | |
stop(ctx: ?, p: ?, st: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
hit(ctx: ?, p: ?, st: ?, target: ?, amount: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| target | ? | |
| amount | ? | |
hit(ctx: ?, p: ?, st: ?, target: ?, amount: ?) → void
| arg | type | description |
|---|
| ctx | ? | |
| p | ? | |
| st | ? | |
| target | ? | |
| amount | ? | |
get(id: string) → any
| arg | type | description |
|---|
| id | string | |
define(id: string, impl: any) → void
Define (or override) a behaviour. impl = { defaults?, describe?, start?, tick?, damaged?, hit?, allyDied?, death?, stop? }.
| arg | type | description |
|---|
| id | string | |
| impl | any | |
params(b: any) → any
Params with defaults filled in.
describe(b: any) → string