26 lines
492 B
Java
26 lines
492 B
Java
package evironment.antGame;
|
|
|
|
import lombok.AccessLevel;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import java.awt.*;
|
|
|
|
@AllArgsConstructor
|
|
@Getter
|
|
@Setter
|
|
public class Ant {
|
|
// only set this via .setLocation of Point-class!
|
|
@Setter(AccessLevel.NONE)
|
|
private Point pos;
|
|
private int points;
|
|
private boolean spawned;
|
|
@Getter(AccessLevel.NONE)
|
|
private boolean hasFood;
|
|
|
|
public boolean hasFood(){
|
|
return hasFood;
|
|
}
|
|
}
|