/**
* TimeHero - http://timehero.sf.net
*
* @license See LICENSE
*/
package it.timehero.actors;
import org.newdawn.slick.SlickException;
import it.timehero.agent.SimpleJasonAgent;
import it.timehero.entities.Entity;
import it.timehero.rules.Scheda;
import it.timehero.world.WorldEngine;
/**
* La strega � il nemico di gigi
*
* @author AM
* @project Timehero0.2
*/
public class Strega extends Thread implements Actor {
private SimpleJasonAgent agent;
private Entity entity;
private String ID;
private Scheda scheda;
private String stato;
/**
* Costruttore della strega, inizializza l'entity sottostante e l'agent
*/
public Strega(WorldEngine we, int x, int y){
try {
setEntity(new Entity(x,y, "data/grafica/hero3.gif",25,32,4,6,5,7,0,30,0,0,0,0,0,0));
} catch (SlickException e) {
e.printStackTrace();
}
setID(new String("STREGA"));
// ho disattivato per prova la logica degli agenti qui!
//setAgent(new SimpleJasonAgent(we,getID()));
setScheda(new Scheda(new Integer(7), new Integer(5)));
}
public SimpleJasonAgent getAgent() {
return agent;
}
public Entity getEntity() {
return entity;
}
public String getID() {
return ID;
}
public Scheda getScheda() {
return scheda;
}
public String getStato() {
return stato;
}
@Override
public void run() {
//agent.run();
}
public void setAgent(SimpleJasonAgent agent) {
this.agent = agent;
}
public void setEntity(Entity entity) {
this.entity = entity;
}
public void setID(String id) {
this.ID = id;
}
public void setScheda(Scheda scheda) {
this.scheda = scheda;
}
public void setStato(String stato) {
this.stato = stato;
}
}