1package com.runehive.game.world.entity.mob.player.requests;
3import com.runehive.net.packet.out.SendMessage;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.region.Region;
6import com.runehive.util.Utility;
97 return otherRequested && sameRequestType && mutualAcquantances;
This class represents a character controlled by a player.
String getName()
Gets the name of this entity.
final RequestManager requestManager
RequestState state
The current state.
Player acquaintance
The current 'acquaintance'.
boolean mutualRequest(RequestManager otherManager)
Checks if a request is mutual between two players.
RequestManager(Player player)
Creates the request manager.
void reset()
Resets the variables for a request.
boolean validate(Player entity)
Performs a check to validate a player for a request.
RequestType requestType
The current request type.
void close()
Called when an itemcontainer is closed.
boolean request(Player other, RequestType type)
Sends another player a request.
Represents a single region.
static final int VIEW_DISTANCE
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static String formatName(final String input)
static boolean withinDistance(Interactable source, Interactable target, int radius)
Holds the different states the manager can be in.
NORMAL
Nobody has offered a request.
PARTICIPATING
The player is participating in an existing request of this type, so cannot accept new requests at all...
REQUESTED
Somebody has offered some kind of request.
Represents the different types of request.