|
RuneHive-Game
|
Classes | |
| enum | UpdateState |
Public Member Functions | |
| boolean | encode (Player player) |
| SendPlayerUpdate () | |
| 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 Private Member Functions | |
| static void | addNewPlayer (PacketBuilder packetBuf, Player player, Player other) |
| static void | appendAnimationMask (Player other, PacketBuilder maskBuf) |
| static void | appendAppearanceMask (Player other, PacketBuilder blockBuf) |
| static void | appendChatMask (PacketBuilder blockBuf, Player other) |
| static void | appendFaceCoordinteMask (Player other, PacketBuilder blockBuf) |
| static void | appendFaceEntityMask (Player other, PacketBuilder blockBuf) |
| static void | appendForceChatMask (Player other, PacketBuilder blockBuf) |
| static void | appendForceMovementMask (Player player, Player other, PacketBuilder blockBuf) |
| static void | appendGraphicMask (Player other, PacketBuilder blockBuf) |
| static void | appendHitMask (final Player player, final PacketBuilder blockBuf) |
| static void | appendSecondHitMask (final Player player, final PacketBuilder blockBuf) |
| static void | updateMovement (Player player, PacketBuilder packetBuf) |
| static void | updatePlayer (PacketBuilder blockBuf, Player player, Player other, UpdateState state) |
Static Private Attributes | |
| static final Logger | logger = LogManager.getLogger(SendPlayerUpdate.class) |
Additional Inherited Members | |
| Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket | |
| final PacketBuilder | builder |
Definition at line 34 of file SendPlayerUpdate.java.
| com.runehive.net.packet.out.SendPlayerUpdate.SendPlayerUpdate | ( | ) |
Definition at line 38 of file SendPlayerUpdate.java.
References com.runehive.net.packet.PacketType.VAR_SHORT.
|
staticprivate |
Definition at line 110 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.Entity.getIndex(), com.runehive.game.world.entity.Entity.getX(), com.runehive.game.world.entity.Entity.getY(), com.runehive.net.packet.PacketBuilder.writeBit(), and com.runehive.net.packet.PacketBuilder.writeBits().
Referenced by encode().
|
staticprivate |
Definition at line 241 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.mob.Mob.getAnimation(), com.runehive.game.Animation.getDelay(), com.runehive.game.Animation.getId(), com.runehive.net.codec.ByteOrder.LE, com.runehive.net.codec.ByteModification.NEG, com.runehive.game.Animation.RESET, com.runehive.net.packet.PacketBuilder.writeByte(), and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 263 of file SendPlayerUpdate.java.
References com.runehive.net.packet.PacketBuilder.alloc(), com.runehive.game.world.items.containers.equipment.Equipment.AMULET_SLOT, com.runehive.game.world.entity.mob.player.Player.appearance, com.runehive.game.world.items.containers.equipment.EquipmentType.BODY, com.runehive.game.world.items.containers.equipment.Equipment.CAPE_SLOT, com.runehive.game.world.items.containers.equipment.Equipment.CHEST_SLOT, com.runehive.game.world.entity.mob.player.Player.clanChannel, com.runehive.game.world.entity.mob.player.Player.clanTag, com.runehive.game.world.entity.mob.player.Player.clanTagColor, com.runehive.game.world.entity.mob.player.Player.equipment, com.runehive.game.world.items.containers.equipment.EquipmentType.FACE, com.runehive.game.world.items.containers.equipment.Equipment.FEET_SLOT, com.runehive.game.world.items.containers.ItemContainer.get(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getArms(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getBeard(), com.runehive.content.combat.SkullHeadIconType.getCode(), com.runehive.content.tittle.PlayerTitle.getColor(), com.runehive.game.world.entity.skill.SkillManager.getCombatLevel(), com.runehive.game.world.entity.mob.player.PlayerRight.getCrown(), com.runehive.game.world.items.Item.getEquipmentType(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getFeet(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getFeetColor(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getGender(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getHairColor(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getHands(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getHead(), com.runehive.content.combat.Skulling.getHeadIconType(), com.runehive.game.world.items.Item.getId(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getLegs(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getLegsColor(), com.runehive.game.world.entity.mob.player.Player.getName(), com.runehive.content.clanchannel.channel.ClanChannel.getOwner(), com.runehive.game.world.entity.mob.MobAnimation.getRun(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getSkinColor(), com.runehive.game.world.entity.mob.MobAnimation.getStand(), com.runehive.content.tittle.PlayerTitle.getTitle(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getTorso(), com.runehive.game.world.entity.mob.player.appearance.Appearance.getTorsoColor(), com.runehive.game.world.entity.mob.MobAnimation.getTurn(), com.runehive.game.world.entity.mob.MobAnimation.getTurn180(), com.runehive.game.world.entity.mob.MobAnimation.getTurn90CCW(), com.runehive.game.world.entity.mob.MobAnimation.getTurn90CW(), com.runehive.game.world.entity.mob.MobAnimation.getWalk(), com.runehive.game.world.items.containers.equipment.Equipment.HANDS_SLOT, com.runehive.util.Utility.hash(), com.runehive.game.world.items.containers.equipment.EquipmentType.HAT, com.runehive.game.world.items.containers.equipment.Equipment.HEAD_SLOT, com.runehive.game.world.entity.mob.player.Player.headIcon, com.runehive.game.world.items.containers.equipment.Equipment.HELM_SLOT, com.runehive.game.world.entity.mob.Mob.id, com.runehive.game.world.items.containers.equipment.Equipment.LEGS_SLOT, com.runehive.game.world.entity.mob.player.appearance.Gender.MALE, com.runehive.game.world.items.containers.equipment.EquipmentType.MASK, com.runehive.game.world.entity.mob.Mob.mobAnimation, com.runehive.net.codec.ByteModification.NEG, com.runehive.game.world.entity.mob.player.Player.overrides, com.runehive.game.world.entity.mob.player.Player.playerTitle, com.runehive.game.world.entity.mob.player.Player.right, com.runehive.game.world.items.containers.equipment.Equipment.SHIELD_SLOT, com.runehive.game.world.entity.mob.Mob.skills, com.runehive.game.world.entity.mob.player.Player.skulling, com.runehive.net.packet.OutgoingPacket.type, com.runehive.game.world.entity.mob.player.Player.valueIcon, com.runehive.game.world.items.containers.equipment.Equipment.WEAPON_SLOT, com.runehive.net.packet.PacketBuilder.writeByte(), com.runehive.net.packet.PacketBuilder.writeBytes(), com.runehive.net.packet.PacketBuilder.writeInt(), com.runehive.net.packet.PacketBuilder.writeLong(), com.runehive.net.packet.PacketBuilder.writeShort(), and com.runehive.net.packet.PacketBuilder.writeString().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 253 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.mob.player.relations.ChatMessage.create(), com.runehive.game.world.entity.mob.player.Player.getChatMessage(), com.runehive.game.world.entity.mob.player.relations.ChatColor.getCode(), com.runehive.game.world.entity.mob.player.relations.ChatEffect.getCode(), com.runehive.game.world.entity.mob.player.relations.ChatMessage.getColor(), com.runehive.game.world.entity.mob.player.PlayerRight.getCrown(), com.runehive.game.world.entity.mob.player.relations.ChatMessage.getEffect(), com.runehive.game.world.entity.mob.player.relations.ChatMessage.getEncoded(), com.runehive.net.codec.ByteOrder.LE, com.runehive.net.codec.ByteModification.NEG, com.runehive.game.world.entity.mob.player.Player.right, com.runehive.net.packet.PacketBuilder.writeByte(), com.runehive.net.packet.PacketBuilder.writeBytesReverse(), and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 227 of file SendPlayerUpdate.java.
References com.runehive.net.codec.ByteModification.ADD, com.runehive.game.world.entity.mob.Mob.facePosition, com.runehive.game.world.entity.mob.Direction.getDirectionX(), com.runehive.game.world.entity.mob.Direction.getDirectionY(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.game.world.entity.mob.movement.Movement.lastDirection, com.runehive.net.codec.ByteOrder.LE, com.runehive.game.world.entity.mob.Mob.movement, and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 214 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.Entity.getIndex(), com.runehive.game.world.entity.mob.Mob.interactingWith, com.runehive.game.world.entity.mob.Mob.isPlayer(), com.runehive.net.codec.ByteOrder.LE, and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 210 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.mob.Mob.forceChat, and com.runehive.net.packet.PacketBuilder.writeString().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 189 of file SendPlayerUpdate.java.
References com.runehive.net.codec.ByteModification.ADD, com.runehive.game.world.entity.mob.player.ForceMovement.getDirection(), com.runehive.game.world.entity.mob.player.ForceMovement.getEnd(), com.runehive.game.world.entity.mob.Mob.getForceMovement(), com.runehive.game.world.position.Position.getLocalX(), com.runehive.game.world.position.Position.getLocalY(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.entity.mob.player.ForceMovement.getReverseSpeed(), com.runehive.game.world.entity.mob.player.ForceMovement.getSpeed(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.game.world.entity.mob.Mob.lastPosition, com.runehive.net.codec.ByteOrder.LE, com.runehive.net.codec.ByteModification.SUB, com.runehive.net.packet.PacketBuilder.writeByte(), and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 247 of file SendPlayerUpdate.java.
References com.runehive.game.Graphic.getDelay(), com.runehive.game.world.entity.mob.Mob.getGraphic(), com.runehive.game.Graphic.getHeight(), com.runehive.game.Graphic.getId(), com.runehive.net.codec.ByteOrder.LE, com.runehive.game.Graphic.RESET, com.runehive.net.packet.PacketBuilder.writeInt(), and com.runehive.net.packet.PacketBuilder.writeShort().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 422 of file SendPlayerUpdate.java.
References com.runehive.net.codec.ByteModification.ADD, com.runehive.game.world.entity.mob.Mob.firstHit, com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), com.runehive.game.world.entity.combat.hit.Hit.getDamage(), com.runehive.game.world.entity.combat.hit.Hit.getHitIcon(), com.runehive.game.world.entity.combat.hit.Hit.getHitsplat(), com.runehive.game.world.entity.combat.hit.HitIcon.getId(), com.runehive.game.world.entity.combat.hit.Hitsplat.getId(), com.runehive.game.world.entity.mob.Mob.getMaximumHealth(), com.runehive.game.world.entity.combat.hit.Hit.getMultipleHits(), com.runehive.net.codec.ByteModification.NEG, com.runehive.game.world.entity.combat.hit.Hitsplat.NORMAL, and com.runehive.net.packet.PacketBuilder.writeByte().
Referenced by updatePlayer().
|
staticprivate |
Definition at line 467 of file SendPlayerUpdate.java.
References com.runehive.net.codec.ByteModification.ADD, com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), com.runehive.game.world.entity.combat.hit.Hit.getDamage(), com.runehive.game.world.entity.combat.hit.Hit.getHitIcon(), com.runehive.game.world.entity.combat.hit.Hit.getHitsplat(), com.runehive.game.world.entity.combat.hit.HitIcon.getId(), com.runehive.game.world.entity.combat.hit.Hitsplat.getId(), com.runehive.game.world.entity.mob.Mob.getMaximumHealth(), com.runehive.game.world.entity.combat.hit.Hit.getMultipleHits(), com.runehive.net.codec.ByteModification.NEG, com.runehive.game.world.entity.combat.hit.Hitsplat.NORMAL, com.runehive.game.world.entity.mob.Mob.secondHit, com.runehive.net.codec.ByteModification.SUB, and com.runehive.net.packet.PacketBuilder.writeByte().
Referenced by updatePlayer().
| boolean com.runehive.net.packet.out.SendPlayerUpdate.encode | ( | Player | player | ) |
Reimplemented from com.runehive.net.packet.OutgoingPacket.
Definition at line 43 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.mob.Viewport.add(), com.runehive.net.packet.out.SendPlayerUpdate.UpdateState.ADD_LOCAL, com.runehive.game.world.entity.mob.Viewport.ADD_THRESHOLD, addNewPlayer(), com.runehive.net.packet.PacketBuilder.alloc(), com.runehive.net.codec.AccessType.BIT, com.runehive.net.packet.OutgoingPacket.builder, com.runehive.net.codec.AccessType.BYTE, com.runehive.game.world.entity.mob.Viewport.CAPACITY, com.runehive.game.world.region.RegionManager.getLocalPlayers(), com.runehive.game.world.entity.mob.Viewport.getPlayersInViewport(), com.runehive.game.world.World.getRegions(), com.runehive.game.world.entity.mob.Mob.isUpdateRequired(), logger, com.runehive.game.world.entity.mob.Mob.regionChange, com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.game.world.entity.mob.Viewport.shouldRemove(), com.runehive.net.packet.out.SendPlayerUpdate.UpdateState.UPDATE_LOCAL, com.runehive.net.packet.out.SendPlayerUpdate.UpdateState.UPDATE_SELF, updateMovement(), updatePlayer(), and com.runehive.game.world.entity.mob.player.Player.viewport.
|
staticprivate |
Definition at line 509 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.Entity.getHeight(), com.runehive.game.world.position.Position.getLocalX(), com.runehive.game.world.position.Position.getLocalY(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.entity.mob.movement.Movement.getRunningDirection(), com.runehive.game.world.entity.mob.movement.Movement.getWalkingDirection(), com.runehive.game.world.entity.mob.Mob.isUpdateRequired(), com.runehive.game.world.entity.mob.Mob.lastPosition, com.runehive.game.world.entity.mob.Mob.movement, com.runehive.game.world.entity.mob.Mob.regionChange, com.runehive.game.world.entity.mob.Mob.teleportRegion, com.runehive.net.packet.PacketBuilder.writeBit(), and com.runehive.net.packet.PacketBuilder.writeBits().
Referenced by encode().
|
staticprivate |
Definition at line 118 of file SendPlayerUpdate.java.
References com.runehive.game.world.entity.mob.UpdateFlag.ANIMATION, com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, appendAnimationMask(), appendAppearanceMask(), appendChatMask(), appendFaceCoordinteMask(), appendFaceEntityMask(), appendForceChatMask(), appendForceMovementMask(), appendGraphicMask(), appendHitMask(), appendSecondHitMask(), com.runehive.game.world.entity.mob.UpdateFlag.canApply(), com.runehive.game.world.entity.mob.UpdateFlag.CHAT, com.runehive.game.world.entity.mob.UpdateFlag.containsPlayer(), com.runehive.game.world.entity.mob.UpdateFlag.FACE_COORDINATE, com.runehive.game.world.entity.mob.UpdateFlag.FIRST_HIT, com.runehive.game.world.entity.mob.UpdateFlag.FORCE_MOVEMENT, com.runehive.game.world.entity.mob.UpdateFlag.FORCED_CHAT, com.runehive.game.world.entity.mob.UpdateFlag.GRAPHICS, com.runehive.game.world.entity.mob.UpdateFlag.INTERACT, com.runehive.game.world.entity.mob.Mob.isUpdateRequired(), com.runehive.game.world.entity.mob.UpdateFlag.playerMask, com.runehive.game.world.entity.mob.UpdateFlag.playerOrder, com.runehive.game.world.entity.mob.UpdateFlag.SECOND_HIT, com.runehive.game.world.entity.mob.Mob.updateFlags, and com.runehive.net.packet.PacketBuilder.writeByte().
Referenced by encode().
|
staticprivate |
Definition at line 36 of file SendPlayerUpdate.java.
Referenced by encode().