yaes.application.eel6938.classagents
Class KillerAgent

java.lang.Object
  extended byyaes.application.eel6938.game.objects.GameObject
      extended byyaes.application.eel6938.game.objects.Agent
          extended byyaes.application.eel6938.classagents.KillerAgent

public class KillerAgent
extends Agent

Author:
Linus Luotsinen This agent will kill, eat and flee. It uses path-planning to get around.

Constructor Summary
KillerAgent()
           
 
Method Summary
 int[] getColor()
          Returns the color of the agent.
 java.lang.String getName()
          Returns the name of the agent.
 void intelligence()
          Specifies the user defined agent intelligence, must be implemented by all agents.
 
Methods inherited from class yaes.application.eel6938.game.objects.Agent
attack, attack, canAttack, canEat, canFlee, canMate, eat, eat, flee, getClosestOpenNeighbouringPoint, getDirections, getEnergyLevel, getSensorAgentList, getSensorDataMap, getSensorFoodList, getSensorObstacleList, mate, move, wasLastCommandSuccessful
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KillerAgent

public KillerAgent()
Method Detail

intelligence

public void intelligence()
Description copied from class: Agent
Specifies the user defined agent intelligence, must be implemented by all agents. This function is called in a round-robin manner in the game. Available actions are shown in the list below:

eat
eat(int)
attack()
attack(int)
flee(int)
mate()
move(int, int)

Specified by:
intelligence in class Agent

getName

public java.lang.String getName()
Description copied from class: Agent
Returns the name of the agent. Must be implemented by all agents in the game.

Specified by:
getName in class Agent
Returns:
A string describing the name of the agent.

getColor

public int[] getColor()
Description copied from class: Agent
Returns the color of the agent. Must be implemented by all agents in the game.

Specified by:
getColor in class Agent
Returns:
An array of three integers descibing the color of the agent. For instance the color red is specified by the array {255,0,0}. The default color is black.