|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Core
The core main API.
| Method Summary | |
|---|---|
void |
addAccount(Account account)
Adds an account. |
void |
addMobile(Mobile mobile)
Adds a mobile. |
boolean |
authenticate(Account account,
String password)
Attempts to authenticate the given account with the specified password. |
Account |
findAccountByUsername(String username)
Retrieves an Account by username and password; the password is
needed to check the credentials. |
Item |
findItemByID(int serialID)
Retrieves an Item by its serial ID. |
Mobile |
findMobileByID(int serialID)
Retrieves a Mobile by its serial ID. |
MapTile |
getTile(int x,
int y)
Retrieves the map tile definition of the given coordinates. |
void |
init()
Initializes the core. |
| Method Detail |
|---|
void init()
LoadException - in case something went wrong
MapTile getTile(int x,
int y)
x - X coordinatey - Y coordinate
Mobile findMobileByID(int serialID)
Mobile by its serial ID.
serialID - Mobile's serial ID
Mobile with the specified serial ID,
or null if there is no such MobileItem findItemByID(int serialID)
Item by its serial ID.
serialID - Item's serial ID
Item with the specified serial ID,
or null if there is no such ItemAccount findAccountByUsername(String username)
Account by username and password; the password is
needed to check the credentials.
username - username
Account matching the provided username, or null
if no such account could be found
boolean authenticate(Account account,
String password)
account - accountpassword - password
void addMobile(Mobile mobile)
mobile - the mobilevoid addAccount(Account account)
account - the account
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||