mud.server.corba
Class GameLogic

java.lang.Object
  extended by mud.server.corba.GameLogic

public class GameLogic
extends java.lang.Object

Does all the checks for movement, attacks, etc.


Constructor Summary
GameLogic(ServerImpl server)
           
 
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
 

Constructor Detail

GameLogic

public GameLogic(ServerImpl server)
Method Detail

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