Added basic flying AI

This commit is contained in:
Anuken
2020-03-21 11:48:10 -04:00
parent d673167477
commit d831fa7ba3
5 changed files with 125 additions and 30 deletions

View File

@@ -23,6 +23,10 @@ abstract class WeaponsComp implements Teamc, Posc, Rotc{
@ReadOnly WeaponMount[] mounts = {};
@ReadOnly float range;
boolean inRange(Position other){
return within(other, range);
}
void setupWeapons(UnitType def){
mounts = new WeaponMount[def.weapons.size];
range = 0f;