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
|
Rev | Line | |
---|
[1] | 1 | package agents.nastyagent;
|
---|
| 2 |
|
---|
| 3 | import java.util.List;
|
---|
| 4 |
|
---|
| 5 | import genius.core.AgentID;
|
---|
| 6 | import genius.core.actions.Action;
|
---|
| 7 | import genius.core.actions.DefaultAction;
|
---|
| 8 |
|
---|
| 9 | /**
|
---|
| 10 | * returns a nonsense action
|
---|
| 11 | *
|
---|
| 12 | * @author W.Pasman 20jul15
|
---|
| 13 | *
|
---|
| 14 | */
|
---|
| 15 | public class NonsenseActionInChoose extends NastyAgent {
|
---|
| 16 | @Override
|
---|
| 17 | public Action chooseAction(List<Class<? extends Action>> possibleActions) {
|
---|
| 18 | return new NonsenseAction(id);
|
---|
| 19 | }
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | class 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.