Class PersonService
Object
PersonService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deletePerson
(Person person) Permanently removes a person from the database, including all related items like boardposts and mudmails and the like.Retrieves someone in the game.getActiveUser
(String name) Retrieves a player, playing the game.Retrieves a person from the pool of all persons.Retrieves a player, may or may not be playing the game.void
sendChatBubble
(Person from, String message) void
Sends a message from an administrator to all players currently playing the game, irrespective of room they are in.void
void
setEntityManager
(EntityManager em)
-
Constructor Details
-
PersonService
-
-
Method Details
-
getPerson
Retrieves a person from the pool of all persons. Bear in mind that no automatic filters need apply, nor does the person need to actually be playing the game, and the name lookup is case-insensitive.- Parameters:
name
- the name of the person.- Returns:
- a person or null if not found.
-
find
Retrieves someone in the game. A bot or someone who is actually active and playing.- Specified by:
find
in interfacePersonsInterface
- Parameters:
name
- the name of the person to lookup.- Returns:
- a Person or null if not found.
-
getUser
-
getActiveUser
-
getActivePlayers
-
sendWall
Sends a message from an administrator to all players currently playing the game, irrespective of room they are in.- Parameters:
message
- the message in question.
-
sendChatBubble
-
sendWall
-
deletePerson
Permanently removes a person from the database, including all related items like boardposts and mudmails and the like. Bear this in mind.- Parameters:
person
- the person to be deleted.
-
setEntityManager
public void setEntityManager(EntityManager em)
-