|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use WeaponPref | |
|---|---|
| cz.cuni.amis.pogamut.ut2004.agent.module.sensor | Utility classes concerning some aspects of the gameplay (mainly for UT). |
| cz.cuni.amis.pogamut.ut2004.bot.command | Utility classes wrapping various command messages. |
| Uses of WeaponPref in cz.cuni.amis.pogamut.ut2004.agent.module.sensor |
|---|
| Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensor that return WeaponPref | |
|---|---|
WeaponPref |
WeaponPrefsRange.getWeaponPreference()
Return the best weapon the bot has for a given distance. |
WeaponPref |
WeaponPrefs.getWeaponPreference()
Return the best weapon according ONLY general preferences. |
WeaponPref |
WeaponPrefs.getWeaponPreference(double distance)
Return the best weapon the bot has for a given distance (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(double distance,
ItemType... forbiddenWeapons)
Return the best weapon the bot has for a given distance (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(double distance,
WeaponPref... forbiddenWeapons)
Return the best weapon the bot has for a given distance (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(ILocated target)
Return the best weapon the bot has to shoot at given location (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(ILocated target,
ItemType... forbiddenWeapons)
Return the best weapon the bot has to shoot at given location (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(ILocated target,
WeaponPref... forbiddenWeapons)
Return the best weapon the bot has to shoot at given location (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefsRange.getWeaponPreference(ItemType... forbiddenWeapons)
Return the best weapon the bot has for a given distance. |
WeaponPref |
WeaponPrefs.getWeaponPreference(ItemType... forbiddenWeapons)
Return the best weapon according ONLY general preferences. |
WeaponPref |
WeaponPrefsRange.getWeaponPreference(WeaponPref... forbiddenWeapons)
Return the best weapon the bot has for a given distance. |
WeaponPref |
WeaponPrefs.getWeaponPreference(WeaponPref... forbiddenWeapons)
Return the best weapon according ONLY general preferences. |
| Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensor that return types with arguments of type WeaponPref | |
|---|---|
Set<WeaponPref> |
WeaponPrefs.getPreferredWeapons()
Returns all WeaponPref defined in general preferences + all range preferences, i.e.,
all weapons your bot might be interested in. |
List<WeaponPref> |
WeaponPrefsRange.getPrefs()
Returns list of preferences (from the most preferred one to the least one). |
| Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensor with parameters of type WeaponPref | |
|---|---|
WeaponPref |
WeaponPrefs.getWeaponPreference(double distance,
WeaponPref... forbiddenWeapons)
Return the best weapon the bot has for a given distance (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefs.getWeaponPreference(ILocated target,
WeaponPref... forbiddenWeapons)
Return the best weapon the bot has to shoot at given location (choosing right weapon preferances for a given distance). |
WeaponPref |
WeaponPrefsRange.getWeaponPreference(WeaponPref... forbiddenWeapons)
Return the best weapon the bot has for a given distance. |
WeaponPref |
WeaponPrefs.getWeaponPreference(WeaponPref... forbiddenWeapons)
Return the best weapon according ONLY general preferences. |
| Method parameters in cz.cuni.amis.pogamut.ut2004.agent.module.sensor with type arguments of type WeaponPref | |
|---|---|
void |
WeaponPrefsRange.setPrefs(List<WeaponPref> prefs)
Set list of preferences to be used (from the most preferred one to the least one). |
| Uses of WeaponPref in cz.cuni.amis.pogamut.ut2004.bot.command |
|---|
| Methods in cz.cuni.amis.pogamut.ut2004.bot.command that return WeaponPref | |
|---|---|
WeaponPref |
ImprovedShooting.getActualWeaponPref()
Get WeaponPref for actually used weapon. |
WeaponPref |
ImprovedShooting.getLastShooting()
Return last type of weapon / mode of firing you've used (or null, if you have issued StopShooting command. |
WeaponPref |
ImprovedShooting.changeWeapon(WeaponPrefs weaponPrefs,
double distance,
ItemType... forbiddenWeapons)
Arms the best weapon according to distance from 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.changeWeapon(WeaponPrefs weaponPrefs,
ILocated target,
ItemType... forbiddenWeapons)
Arms the best weapon according to distance from 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.changeWeapon(WeaponPrefs weaponPrefs,
ItemType... forbiddenWeapons)
Arms the best weapon according to general preferences in 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.changeWeaponNow(WeaponPrefs weaponPrefs,
double distance,
ItemType... forbiddenWeapons)
Arms the best weapon according to distance from 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.changeWeaponNow(WeaponPrefs weaponPrefs,
ILocated target,
ItemType... forbiddenWeapons)
Arms the best weapon according to distance from 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.changeWeaponNow(WeaponPrefs weaponPrefs,
ItemType... forbiddenWeapons)
Arms the best weapon according to general preferences in 'weaponPrefs'. |
WeaponPref |
ImprovedShooting.shoot(WeaponPrefs prefs,
ILocated target,
ItemType... forbiddenWeapon)
Will start shooting with the best weapon (according to 'prefs') at target. |
WeaponPref |
ImprovedShooting.shootNow(WeaponPrefs prefs,
ILocated target,
ItemType... forbiddenWeapon)
Will start shooting with the best weapon (according to 'prefs') at target. |
| Methods in cz.cuni.amis.pogamut.ut2004.bot.command with parameters of type WeaponPref | |
|---|---|
boolean |
ImprovedShooting.changeWeapon(WeaponPref pref)
Changes the weapon the bot is currently holding (if the bot has the weapon and its primary/secondary (according to 'pref') ammo > 0). |
boolean |
ImprovedShooting.changeWeaponNow(WeaponPref pref)
Changes the weapon the bot is currently holding (if the bot has the weapon and its primary/secondary (according to 'pref') ammo > 0). |
boolean |
ImprovedShooting.shoot(WeaponPref pref,
ILocated target)
Will start shooting with getWeapon() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shoot(WeaponPref pref,
UnrealId target)
Will start shooting with getWeapon() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shootNow(WeaponPref pref,
ILocated target)
Will start shooting with getWeapon() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shootNow(WeaponPref pref,
UnrealId target)
Will start shooting with getWeapon() primary/secondary (as specified) at 'target'. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||