コード例 #1
0
ファイル: Creature.java プロジェクト: soulxj/aion-cn
  /** This is adding broadcast to player. */
  public final void addPacketBroadcastMask(BroadcastMode mode) {
    packetBroadcastMask |= mode.mask();

    PacketBroadcaster.getInstance().add(this);

    // Debug
    if (log.isDebugEnabled())
      log.debug("PacketBroadcaster: Packet " + mode.name() + " added to player " + this.getName());
  }
コード例 #2
0
ファイル: Creature.java プロジェクト: ARAGORN89/aego-tw
  /** This is removing broadcast from player. */
  public final void removePacketBroadcastMask(BroadcastMode mode) {
    packetBroadcastMask &= ~mode.mask();

    // Debug
    if (log.isDebugEnabled())
      log.debug(
          "PacketBroadcaster: Packet "
              + mode.name()
              + " removed from player "
              + ((Player) this).getName());
  }
コード例 #3
0
ファイル: Creature.java プロジェクト: soulxj/aion-cn
  /** This is removing broadcast from player. */
  public final void removePacketBroadcastMask(BroadcastMode mode) {
    packetBroadcastMask &= ~mode.mask();

    // Debug
    if (log.isDebugEnabled())
      log.debug(
          "PacketBroadcaster: Packet "
              + mode.name()
              + " removed from player "
              + this.getName()); // fix
    // ClassCastException
  }