示例#1
0
 /**
  * Checks if this is the same as the given
  *
  * @param other The actor this is being compared to
  * @return returns true if they are the same, false if not
  */
 public boolean isSame(Actor other) {
   if (other.getColor().equals(getColor())) {
     if (other.getDirection() == getDirection()) {
       if (other.getLocation().isSameLocation(other.getLocation())) {
         return true;
       }
     }
   }
   return false;
 }