Codota Logo
PlayerId.equals
Code IndexAdd Codota to your IDE (free)

How to use
equals
method
in
be.yildizgames.common.model.PlayerId

Best Java code snippets using be.yildizgames.common.model.PlayerId.equals (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: be.yildiz-games/module-network

  @Override
  public final boolean equals(final Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof Session)) {
      return false;
    }
    Session other = (Session) obj;
    return this.player.equals(other.player);
  }
}
origin: be.yildiz-games/feature-player-shared

/**
 * @param id Player to check.
 * @return <code>true</code> if the player is world.
 */
public boolean isWorld(final PlayerId id) {
  return Player.WORLD.id.equals(id);
}
origin: be.yildiz-games/feature-message-shared

  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (!(obj instanceof Message)) {
      return false;
    }
    Message other = (Message) obj;
    return this.date == other.date && this.content.equals(other.content) && this.read == other.read && this.receiver.equals(other.receiver) && this.sender.equals(other.sender);
  }
}
origin: be.yildiz-games/feature-player-shared

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  PlayerDto playerDto = (PlayerDto) o;
  return player.equals(playerDto.player) && login.equals(playerDto.login) && status == playerDto.status;
}
origin: be.yildiz-games/feature-resource-shared

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  ResourceTransferDto that = (ResourceTransferDto) o;
  return receiver.equals(that.receiver) && giver.equals(that.giver) && resources.equals(that.resources) && cause == that.cause;
}
origin: be.yildiz-games/feature-entity-shared

@Override
public final boolean hasSameOwnerAs(final Entity e) {
  return this.owner.equals(e.getOwner());
}
origin: be.yildiz-games/feature-construction-shared

public boolean isOwned(final PlayerId player) {
  assert player != null;
  return this.entity.getOwner().equals(player);
}
origin: be.yildiz-games/feature-entity-shared

@Override
public boolean equals(Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  ChangeOwnerDto that = (ChangeOwnerDto) o;
  if (!entity.equals(that.entity)) {
    return false;
  }
  return newOwnerId.equals(that.newOwnerId);
}
origin: be.yildiz-games/feature-entity-shared

/**
 * Occurs when 2 entities are no longer colliding, notify the listeners that they are not visible if they were and only if they do not belong to the same player.
 */
@Override
public final void lostCollision(final CollisionResult r) {
  T viewer = this.manager.findById(r.object1);
  T unseen = this.manager.findById(r.object2);
  if (!viewer.getOwner().equals(unseen.getOwner()) && viewer.isSeeing(unseen)) {
    this.listenerList.forEach(l -> l.noLongerSee(viewer, unseen));
  }
}
be.yildizgames.common.modelPlayerIdequals

Popular methods of PlayerId

  • hashCode
  • <init>
    Full constructor, private to prevent use, to create an id, retrieve it from Id.get.
  • valueOf
    Retrieve an Id from a value.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now