L2JPREMIUM  5M
com.premium.game.model.entity.Duel Class Reference
Collaboration diagram for com.premium.game.model.entity.Duel:

Classes

enum  DuelResultEnum
 
class  PlayerCondition
 
class  ScheduleDuelTask
 
class  ScheduleEndDuelTask
 
class  ScheduleStartDuelTask
 

Public Member Functions

 Duel (L2PcInstance playerA, L2PcInstance playerB, int partyDuel, int duelId)
 
void broadcastToTeam1 (L2GameServerPacket packet)
 
void broadcastToTeam2 (L2GameServerPacket packet)
 
DuelResultEnum checkEndDuelCondition ()
 
int countdown ()
 
void doSurrender (L2PcInstance player)
 
void endDuel (DuelResultEnum result)
 
boolean getFinished ()
 
int getId ()
 
L2PcInstance getLooser ()
 
L2PcInstance getPlayerA ()
 
L2PcInstance getPlayerB ()
 
int getRemainingTime ()
 
L2PcInstance getWinner ()
 
boolean isDuelistInPvp (boolean sendMessage)
 
boolean isPartyDuel ()
 
void onPlayerDefeat (L2PcInstance player)
 
void onRemoveFromParty (L2PcInstance player)
 
void playKneelAnimation ()
 
void restorePlayerConditions (boolean abnormalDuelEnd)
 
void restorePlayerConditions (L2PcInstance pl)
 
void savePlayerConditions ()
 
void setFinished (boolean mode)
 
void startDuel ()
 
void teleportPlayers (int x, int y, int z)
 

Static Public Member Functions

static boolean isInvul (L2Character targetChar, L2Character attackerChar)
 

Public Attributes

ScheduledFuture<?> _duelTask = null
 
ScheduledFuture<?> _duelEndTask = null
 

Static Public Attributes

static final Logger _log = Logger.getLogger(Duel.class.getName())
 
static final int DUELSTATE_NODUEL = 0
 
static final int DUELSTATE_DUELLING = 1
 
static final int DUELSTATE_DEAD = 2
 
static final int DUELSTATE_WINNER = 3
 
static final int DUELSTATE_INTERRUPTED = 4
 

The documentation for this class was generated from the following file: