/** * checks whether a weapon is a valid for this projectile. * * @param weapon the weapon to be checked * @return true if and only if the weapon is not null and the weapon is not terminated |result == * | (weapon != null && (!weapon.isTerminated())) */ @Raw public static boolean isValidWeapon(Weapon weapon) { return ((weapon != null) && (!weapon.isTerminated())); }