|
RuneHive-Game
|
Sends the entity feed. More...
Public Member Functions | |
| boolean | encode (final Player player) |
| SendEntityFeed () | |
| SendEntityFeed (final int hp, final int maxHp) | |
| SendEntityFeed (final int opponentId, final int hp, final int maxHp) | |
| SendEntityFeed (final Mob mob) | |
| Public Member Functions inherited from com.runehive.net.packet.OutgoingPacket | |
| void | execute (Player player) |
| OutgoingPacket (int opcode, int capacity) | |
| OutgoingPacket (int opcode, PacketType type) | |
| OutgoingPacket (int opcode, PacketType type, int size) | |
Static Public Member Functions | |
| static int | getOpponent (final Mob mob) |
Static Public Attributes | |
| static final int | NO_OPPONENT = -1 |
| static final int | OPPONENT_OFFSET_NPC = 2048 |
Private Attributes | |
| final int | hp |
| final int | maxHp |
| final int | opponentId |
Static Private Attributes | |
| static final int | OPCODE = 175 |
Additional Inherited Members | |
| Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket | |
| final PacketBuilder | builder |
Sends the entity feed.
Definition at line 13 of file SendEntityFeed.java.
| com.runehive.net.packet.out.SendEntityFeed.SendEntityFeed | ( | final int | opponentId, |
| final int | hp, | ||
| final int | maxHp ) |
Definition at line 31 of file SendEntityFeed.java.
References com.runehive.net.packet.PacketType.FIXED, hp, maxHp, OPCODE, and opponentId.
Referenced by getOpponent().
| com.runehive.net.packet.out.SendEntityFeed.SendEntityFeed | ( | final Mob | mob | ) |
Definition at line 39 of file SendEntityFeed.java.
References com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), com.runehive.game.world.entity.mob.Mob.getMaximumHealth(), and getOpponent().
| com.runehive.net.packet.out.SendEntityFeed.SendEntityFeed | ( | final int | hp, |
| final int | maxHp ) |
Definition at line 47 of file SendEntityFeed.java.
References hp, maxHp, and NO_OPPONENT.
| com.runehive.net.packet.out.SendEntityFeed.SendEntityFeed | ( | ) |
Definition at line 51 of file SendEntityFeed.java.
| boolean com.runehive.net.packet.out.SendEntityFeed.encode | ( | final Player | player | ) |
Reimplemented from com.runehive.net.packet.OutgoingPacket.
Definition at line 56 of file SendEntityFeed.java.
References com.runehive.net.packet.OutgoingPacket.builder, hp, maxHp, and opponentId.
|
static |
Definition at line 20 of file SendEntityFeed.java.
References com.runehive.game.world.entity.Entity.getIndex(), com.runehive.game.world.entity.mob.Mob.isPlayer(), and SendEntityFeed().
Referenced by SendEntityFeed(), and com.runehive.net.packet.out.SendKillFeed.SendKillFeed().
|
private |
Definition at line 28 of file SendEntityFeed.java.
Referenced by encode(), SendEntityFeed(), and SendEntityFeed().
|
private |
Definition at line 29 of file SendEntityFeed.java.
Referenced by encode(), SendEntityFeed(), and SendEntityFeed().
|
static |
Definition at line 17 of file SendEntityFeed.java.
Referenced by SendEntityFeed().
|
staticprivate |
Definition at line 15 of file SendEntityFeed.java.
Referenced by SendEntityFeed().
|
static |
Definition at line 18 of file SendEntityFeed.java.
|
private |
Definition at line 26 of file SendEntityFeed.java.
Referenced by encode(), and SendEntityFeed().