Files
Mindustry/core/src/mindustry/entities/units/WeaponMount.java
2020-02-08 14:48:04 -05:00

25 lines
729 B
Java

package mindustry.entities.units;
import mindustry.type.*;
public class WeaponMount{
/** weapon associated with this mount */
public final Weapon weapon;
/** reload in frames; 0 means ready to fire */
public float reload;
/** rotation relative to the unit this mount is on */
public float rotation;
/** aiming position in world coordinates */
public float aimX, aimY;
/** side that's being shot - only valid for mirrors */
public boolean side;
/** whether to shoot right now */
public boolean shoot = false;
/** whether to rotate to face the target right now */
public boolean rotate = false;
public WeaponMount(Weapon weapon){
this.weapon = weapon;
}
}