Status

From Asgard
Jump to: navigation, search

Data Members

-name: string

The name of the status. (i.e. "poison")

-entrance: Transaction[]

List of Transaction's to execute on entry into this Status. (i.e. hp -5%)

-perTurn: Transaction[]

List of Transaction's to execute each turn of the afflicted Fighter.

-perIteration: Transaction[]

List of Transaction's to execute each game loop iteration.

-exit: Transaction[]

List of Transaction's to execute on the exit of a Status.

Methods

+getName(): string

+setName(name: string): void

+getEntrance(): Transaction[]

+setEntrance(t: Transaction[]): void

+getPerTurn(): Transaction[]

+setPerTurn(t: Transaction[]): void

+getIteration(): Transaction[]

+setIteration(t: Transaction[]): void

+getExit(): Transaction[]

+setExit(t: Transaction[]): void

+genEntrance(): void

Executes each Transaction in the entrance list. Called by Fighter.addStatus() after the Status is generated.

+genPerTurn(): void

Executes each Transaction in the per turn list. Called by Fighter.makeEvent().

+genIteration(): void

Executes each Transaction in the iteration list. Called by Battle.nextTurn().

+genExit(): void

Executes each Transaction in the exit list. Called by Fighter.removeStatus().

See Also