1 package se
.umu
.cs
.dit06ajnajs
.agent
;
5 import java
.util
.logging
.Logger
;
7 import se
.umu
.cs
.dit06ajnajs
.Paintable
;
8 import se
.umu
.cs
.dit06ajnajs
.map
.Map
;
10 public abstract class Unit
implements Agent
, Paintable
{
11 private static Logger logger
= Logger
.getLogger("AntiTD");
21 private Direction direction
;
24 public Unit(int xPos
, int yPos
, int width
, int height
, int speed
, Direction direction
, Map map
) {
30 this.direction
= direction
;
34 public void setImage(Image img
) {
35 // TODO Auto-generated method stub
45 //TODO invoke landOn(this) on the square the unit lands on
46 // Nu måste unit fråga map vilken ruta som finns på detta x,y?
67 public int getXPos() {
71 public void setXPos(int pos
) {
75 public int getYPos() {
79 public void setYPos(int pos
) {
83 public int getWidth() {
87 public void setWidth(int width
) {
91 public int getHeight() {
95 public void setHeight(int height
) {
99 public int getSpeed() {
103 public void setSpeed(int speed
) {
107 public Direction
getDirection() {
111 public void setDirection(Direction direction
) {
112 this.direction
= direction
;