rle.simple.monster
Class SimpleMonsterAi

java.lang.Object
  extended by rle.core.vm.PlugInBase
      extended by rle.simple.monster.SimpleMonsterAi
All Implemented Interfaces:
CreatureAi, PlugIn

public class SimpleMonsterAi
extends PlugInBase
implements CreatureAi

Controls monsters.


Field Summary
 
Fields inherited from class rle.core.vm.PlugInBase
config, context, parameters
 
Constructor Summary
SimpleMonsterAi()
           
 
Method Summary
 Creature getCreature()
           
 Monster getMonster()
           
 void setCreature(Creature c)
           
 void setMonster(Monster monster)
           
 void takeTurn()
          Perform the next action this Artificial Intelligence wants its creature to take.
 
Methods inherited from class rle.core.vm.PlugInBase
config, getContext, getParameters, paramMap, setConfig, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface rle.core.vm.PlugIn
config, getContext, paramMap, setConfig, setParameters
 

Constructor Detail

SimpleMonsterAi

public SimpleMonsterAi()
Method Detail

getMonster

public Monster getMonster()

setMonster

public void setMonster(Monster monster)

takeTurn

public void takeTurn()
Description copied from interface: CreatureAi
Perform the next action this Artificial Intelligence wants its creature to take. This method MUST consume enough energy to put the creature's energy level under GameClock.getEnergyRequiredToTakeTurn() before returning to work properly with the GameClock creature scheduling contract!!

Specified by:
takeTurn in interface CreatureAi

setCreature

public void setCreature(Creature c)
Specified by:
setCreature in interface CreatureAi

getCreature

public Creature getCreature()
Specified by:
getCreature in interface CreatureAi