public class BattleStartedEvent extends BattleEvent
BattleRegistry.startBattle(BattleParticipant, BattleParticipant)
functions which is where this event is most likely called from.
BattleStartedEvent.Pre
and BattleStartedEvent.Post
for more specific implementation detailsModifier and Type | Class and Description |
---|---|
static class |
BattleStartedEvent.Post
Fired after the battle has been registered and begun.
|
static class |
BattleStartedEvent.Pre
Fired before the battle is registered and begins.
|
Modifier and Type | Field and Description |
---|---|
protected BattleParticipant[] |
teamOne |
protected BattleParticipant[] |
teamTwo |
battleController
Modifier | Constructor and Description |
---|---|
protected |
BattleStartedEvent(BattleController bc,
BattleParticipant[] teamOne,
BattleParticipant[] teamTwo) |
Modifier and Type | Method and Description |
---|---|
BattleParticipant[] |
getTeamOne()
Gets the first team of battle participants
|
BattleParticipant[] |
getTeamTwo()
Gets the second team of battle participants
|
getBattleController
protected final BattleParticipant[] teamOne
protected final BattleParticipant[] teamTwo
protected BattleStartedEvent(BattleController bc, BattleParticipant[] teamOne, BattleParticipant[] teamTwo)
public BattleParticipant[] getTeamOne()
public BattleParticipant[] getTeamTwo()