1 package se
.umu
.cs
.dit06ajnajs
;
4 import java
.awt
.Dimension
;
7 import java
.util
.ArrayList
;
9 import se
.umu
.cs
.dit06ajnajs
.agent
.Agent
;
10 import se
.umu
.cs
.dit06ajnajs
.agent
.Tower
;
13 public class ATDModel
{
19 this.agents
= new ArrayList
<Agent
>();
20 this.map
= MapBuilder
.createMap();
23 public void addTower(Tower t
) {
24 TowerSquare square
= map
.getRandomFreeTowerSquare();
26 Point p
= square
.getPosition();
31 System
.out
.println("No available towersquares");
35 public void addAgent(Agent agent
) {
36 // TODO Auto-generated method stub
40 public List
<Agent
> getAgents() {
41 // TODO Auto-generated method stub
49 public Image
getMapImage() {
50 return map
.getMapImage();
53 public Dimension
getMapDimension() {
54 return map
.getDimension();