simple.client.entity.IUserContext Maven / Gradle / Ivy
package simple.client.entity;
import marauroa.common.game.RPEvent;
import simple.client.RPObjectChangeListener;
import simple.client.event.listener.ClientRPEventListener;
/**
*
* @author Javier A. Ortiz Bultrón
*/
public interface IUserContext extends RPObjectChangeListener {
/**
* Get the administrator level.
*
* @return The administrator level.
*/
int getAdminLevel();
/**
* Get the player character name.
*
* @return The player character name.
*/
String getName();
/**
* Determine if the user is an admin.
*
* @return true
is the user is an admin.
*/
boolean isAdmin();
/**
* Register an RPEvent listener
*
* @param event event to listen for
* @param listener listener
*/
void registerClientRPEventListener(Class extends RPEvent> event,
ClientRPEventListener listener);
}