monrovia.server.platform.map
Interface ComputerCreature

All Known Implementing Classes:
ComputerGameCreature

public interface ComputerCreature

Interface for computer handled creatures.


Method Summary
 Command getCommand()
          Return command for next turn.
 boolean isComputer()
          Returns whether this creature is a computer creature.
 void setComputer(boolean pComputer)
          Set whether this is a computer controlled creature.
 

Method Detail

isComputer

public boolean isComputer()
Returns whether this creature is a computer creature. Note that creature implementation can be a computer creature or a computer creature.

Returns:
True if this creature is controlled by a computer

setComputer

public void setComputer(boolean pComputer)
Set whether this is a computer controlled creature. The platform will call this with the parameter true for the creatures loaded from the game data.

Parameters:
pComputer - True if this creatures is controlled by a computer

getCommand

public Command getCommand()
Return command for next turn.

Use getGI().getCommand("command name") to get the command. If you want arguments for that command, you should set those before returning.

Returns:
Name of a command or null to do nothing