package comlib.adk.agent;

import comlib.adk.tactics.Tactics;
import comlib.agent.CommunicationAgent;
import rescuecore2.standard.entities.StandardEntity;

public abstract class TacticsAgent<E extends StandardEntity> extends CommunicationAgent<E>
{
    public Tactics tactics;

    private TacticsAgent() {
        super();
    }

    public TacticsAgent(Tactics t){
        this();
        this.tactics = t;
    }
}
@@ -95,16 +95,50 @@
 nAgent;%0A
+import comlib.agent.MessageEvent;%0A
 import r
@@ -181,16 +181,57 @@
 dEntity;
+%0Aimport rescuecore2.worldmodel.ChangeSet;
 %0A%0Apublic
@@ -355,14 +355,13 @@
    p
-rivate
+ublic
  Tac
@@ -374,10 +374,18 @@
 ent(
+Tactics t
 )
- 
 %7B%0A  
@@ -407,87 +407,465 @@
     
-%7D%0A%0A    public TacticsAgent(Tactics t)%7B%0A        this();%0A        this.tactics = t
+    this.tactics = t;%0A    %7D%0A%0A    /*@Override%0A    protected EnumSet%3CStandardEntityURN%3E getRequestedEntityURNsEnum() %7B%0A        return null;%0A    %7D*/%0A%0A    @Override%0A    public MessageEvent getMessageEvent() %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public void postConnect() %7B%0A        super.postConnect();%0A        this.tactics.postConnect();%0A    %7D%0A%0A    @Override%0A    public void think(int time, ChangeSet changed) %7B%0A        this.send(this.tactics.think())
 ;%0A  

add src