TargetLoader - JohnDoeAntler/LF2-AI-Abstraction GitHub Wiki

A class that reduces the bolierplate of target loading.

Constructor

TargetLoader();

// examples
TargetLoader@ tl = TargetLoader();

Properties

No property available.

Methods

load

Target loader will start working after invoking load function.

// definition
void load();

// examples
tl.load();

hasLightWeapon

check does light weapon exists on game.

tl.hasLightWeapon();

hasHeavyWeapon

check does heavy weapon exists on game.

tl.hasHeavyWeapon();

hasAttack

check does attack exists on game.

tl.hasAttack();

hasThrowWeapon

check does throw weapon exists on game.

tl.hasThrowWeapon();

hasCriminal

check does criminal exists on game.

tl.hasCriminal();

hasDrink

check does drink exists on game.

tl.hasDrink();

hasEnemy

check does enemy exists on game.

tl.hasEnemy();

hasTeammate

check does teammate exists on game.

tl.hasTeammate();

hasItem

check does item exits on game.

tl.hasItem();

getLightWeapons

it will return an sorted array of light weapons.

tl.getLightWeapons();

getHeavyWeapons

it will return an sorted array of heavy weapons.

tl.getHeavyWeapons();

getAttacks

it will return an sorted array of attacks.

tl.getAttacks();

getThrowWeapons

it will return an sorted array of throw weapons.

tl.getThrowWeapons();

getCriminals

it will return an sorted array of criminals.

tl.getCriminals();

getDrinks

it will return an sorted array of drinks.

tl.getDrinks();

getEnemies

it will return an sorted array of enemies.

tl.getEnemies();

getTeammates

it will return an sorted array of teammates.

tl.getTeammates();

getItems

it will return an sorted array of items.

tl.getItems();

getAI

it will return AI it self.

tl.getAI();

getNearestEnemy

it will return the nearest enemy.

tl.getNearestEnemy();

getNearestTeammate

it will return the nearest teammate.

tl.getNearestTeammate();

getNearestAttack

it will return the nearest attack.

tl.getNearestAttack();

getNearestCriminal

it will return the nearest criminal.

tl.getNearestCriminal();

getNearestItem

it will return the nearest item.

tl.getNearestItem();

getNearestLightWeapon

it will return the nearest light weapon.

tl.getNearestLightWeapon();

getNearestHeavyWeapon

it will return the nearest heavy weapon.

tl.getNearestHeavyWeapon();

getNearestThrowWeapon

it will return the nearest throw weapon.

tl.getNearestThrowWeapon();

getNearestDrink

it will return the nearest drink.

tl.getNearestDrink();

Snippets

No snippets available.

⚠️ **GitHub.com Fallback** ⚠️