fixed factory auto attack
This commit is contained in:
parent
9138ec8402
commit
1acec322f3
2 changed files with 8 additions and 1 deletions
|
|
@ -55,6 +55,10 @@ public class Factory extends Building{
|
|||
@Override
|
||||
protected SelectBox getSelection() {
|
||||
return selectionBox;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isTerrain(){
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,10 +19,13 @@ public abstract class MapEntity extends Unit{
|
|||
remove();
|
||||
}
|
||||
}
|
||||
|
||||
public void move(boolean play, int x, int y){
|
||||
}
|
||||
|
||||
public void attack(Vector2i target, boolean play) {
|
||||
}
|
||||
|
||||
public boolean isTerrain(){
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue