public class PartyFFA extends AbstractFight implements PartyFight
arena, bed1Broken, bed2Broken, blockChanges, blockLimitReached, currentFight, durationLimit, kit, maxBlockChanges, started, statistics
Constructor and Description |
---|
PartyFFA(StrikePractice plugin,
Party party,
BattleKit kit) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowSpectating()
Gets if specatting is allowed in the fight.
|
boolean |
canStart()
Gets if the fight can be started.
|
void |
forceEnd(java.lang.String reason) |
java.util.HashSet<java.lang.String> |
getAlive() |
java.util.List<java.lang.String> |
getOpponents(Player p)
Dead players should be included in the list if online.
|
Party[] |
getParties() |
Party |
getParty() |
java.util.List<java.lang.String> |
getTeammates(Player p)
The given player should be included in the list.
|
void |
handleDeath(Player p)
This will be called when the player died
|
boolean |
hasEnded()
Gets if this fight has ended.
|
boolean |
playersAreOpponents(Player one,
Player two) |
boolean |
playersAreTeammates(Player one,
Player two) |
void |
start()
Starts the actual fight
|
addBlockChange, clearBlockChanges, getArena, getBlockChanges, getBlockChangesMap, getCurrentFight, getDuration, getDurationLimit, getEnded, getFights, getKit, getMaxBlockChanges, getStarted, getStatistics, getStatistics, getStatistics, handleDisappear, isBed1Broken, isBed2Broken, isInFight, sendSpectatorMessages, sendSpectatorMessages, setArena, setBed1Broken, setBed2Broken, setCurrentFight, setKit, setMaxBlockChanges, setStartedAfterCountdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forceEndDelayed, getFightStatistics, getFightStatistics, getPlayerNames, getPlayersInFight, getSpectators, hasStarted, saveFight
public boolean canStart()
Fight
public void start()
Fight
start
in interface Fight
start
in class AbstractFight
public Party[] getParties()
getParties
in interface PartyFight
public void handleDeath(Player p)
Fight
handleDeath
in interface Fight
p
- player who died.public boolean allowSpectating()
Fight
allowSpectating
in interface Fight
public boolean hasEnded()
public Party getParty()
public java.util.HashSet<java.lang.String> getAlive()
public java.util.List<java.lang.String> getTeammates(Player p)
Fight
getTeammates
in interface Fight
public java.util.List<java.lang.String> getOpponents(Player p)
Fight
getOpponents
in interface Fight
public boolean playersAreOpponents(Player one, Player two)
playersAreOpponents
in interface Fight
public boolean playersAreTeammates(Player one, Player two)
playersAreTeammates
in interface Fight