Tabnine Logo
PlayerId.equals
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now