TargetLoader - JohnDoeAntler/LF2-AI-Abstraction GitHub Wiki
A class that reduces the bolierplate of target loading.
- Constructor
- Properties
-
Methods
- load
- hasLightWeapon
- hasHeavyWeapon
- hasAttack
- hasThrowWeapon
- hasCriminal
- hasDrink
- hasEnemy
- hasTeammate
- hasItem
- getLightWeapons
- getHeavyWeapons
- getAttacks
- getThrowWeapons
- getCriminals
- getDrinks
- getEnemies
- getTeammates
- getItems
- getAI
- getNearestEnemy
- getNearestTeammate
- getNearestAttack
- getNearestCriminal
- getNearestItem
- getNearestLightWeapon
- getNearestHeavyWeapon
- getNearestThrowWeapon
- getNearestDrink
- Snippets
TargetLoader();
// examples
TargetLoader@ tl = TargetLoader();
No property available.
Target loader will start working after invoking load function.
// definition
void load();
// examples
tl.load();
check does light weapon exists on game.
tl.hasLightWeapon();
check does heavy weapon exists on game.
tl.hasHeavyWeapon();
check does attack exists on game.
tl.hasAttack();
check does throw weapon exists on game.
tl.hasThrowWeapon();
check does criminal exists on game.
tl.hasCriminal();
check does drink exists on game.
tl.hasDrink();
check does enemy exists on game.
tl.hasEnemy();
check does teammate exists on game.
tl.hasTeammate();
check does item exits on game.
tl.hasItem();
it will return an sorted array of light weapons.
tl.getLightWeapons();
it will return an sorted array of heavy weapons.
tl.getHeavyWeapons();
it will return an sorted array of attacks.
tl.getAttacks();
it will return an sorted array of throw weapons.
tl.getThrowWeapons();
it will return an sorted array of criminals.
tl.getCriminals();
it will return an sorted array of drinks.
tl.getDrinks();
it will return an sorted array of enemies.
tl.getEnemies();
it will return an sorted array of teammates.
tl.getTeammates();
it will return an sorted array of items.
tl.getItems();
it will return AI it self.
tl.getAI();
it will return the nearest enemy.
tl.getNearestEnemy();
it will return the nearest teammate.
tl.getNearestTeammate();
it will return the nearest attack.
tl.getNearestAttack();
it will return the nearest criminal.
tl.getNearestCriminal();
it will return the nearest item.
tl.getNearestItem();
it will return the nearest light weapon.
tl.getNearestLightWeapon();
it will return the nearest heavy weapon.
tl.getNearestHeavyWeapon();
it will return the nearest throw weapon.
tl.getNearestThrowWeapon();
it will return the nearest drink.
tl.getNearestDrink();
No snippets available.