source: src/test/java/agents/nastyagent/NonsenseActionInChoose.java@ 126

Last change on this file since 126 was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 583 bytes
Line 
1package agents.nastyagent;
2
3import java.util.List;
4
5import genius.core.AgentID;
6import genius.core.actions.Action;
7import genius.core.actions.DefaultAction;
8
9/**
10 * returns a nonsense action
11 *
12 * @author W.Pasman 20jul15
13 *
14 */
15public class NonsenseActionInChoose extends NastyAgent {
16 @Override
17 public Action chooseAction(List<Class<? extends Action>> possibleActions) {
18 return new NonsenseAction(id);
19 }
20}
21
22class NonsenseAction extends DefaultAction {
23 public NonsenseAction(AgentID agentID) {
24 super(agentID);
25 }
26
27 @Override
28 public String toString() {
29 return null;
30 }
31
32}
Note: See TracBrowser for help on using the repository browser.