| Package | Description |
|---|---|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
List<WeaponPref> |
WeaponPrefsRange.getPrefs()
Returns list of preferences (from the most preferred one to the least one).
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WeaponPrefsRange.setPrefs(List<WeaponPref> prefs)
Set list of preferences to be used (from the most preferred one to the least one).
|
| Modifier and Type | Method and Description |
|---|---|
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.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.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.
|
| Modifier and Type | Method and Description |
|---|---|
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'. |
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.