mud.server.corba
Class GameLogic
java.lang.Object
mud.server.corba.GameLogic
public class GameLogic
- extends java.lang.Object
Does all the checks for movement, attacks, etc.
Method Summary |
boolean |
action(int id,
int objectId,
int actionId)
|
boolean |
attack(int id)
|
boolean |
move(Creature creature,
int targetX,
int targetY)
|
boolean |
move(int id,
int targetX,
int targetY)
|
boolean |
useItem(int id,
int itemId)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameLogic
public GameLogic(ServerImpl server)
move
public boolean move(int id,
int targetX,
int targetY)
throws InvalidSecurityToken
- Throws:
InvalidSecurityToken
move
public boolean move(Creature creature,
int targetX,
int targetY)
attack
public boolean attack(int id)
throws InvalidSecurityToken
- Throws:
InvalidSecurityToken
action
public boolean action(int id,
int objectId,
int actionId)
throws InvalidSecurityToken
- Throws:
InvalidSecurityToken
useItem
public boolean useItem(int id,
int itemId)
throws InvalidSecurityToken
- Throws:
InvalidSecurityToken