/* (non-Javadoc)
* @see org.timerescue.droid.element.agent.DecisionMaker#wanderNonePlayer()
*/
@Override
public Action decideNonePlayer() {
Action decision = null;
String aggressiveness = property_holder.getCurrentProperty(
Constants.Property.AGGRESSIVENESS);
//TODO pass this to behaviors
//Getting environment information
//I am already attacking? or am i the target?
if (state_holder.isStateActive(DefaultAttackAction.class)){
DefaultAttackAction attack = (DefaultAttackAction) state_holder.getState(
DefaultAttackAction.class);
Agent target = attack.getTarget();
//Counter attack if it is the target
decision = attack(target);
//If the target couldn't be reached remove states
if(decision.equals(null)){
attack.removeStates();
}
}else{
//Is it aggressive?
if (Boolean.parseBoolean(aggressiveness)){