| Package | Description |
|---|---|
| cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric | |
| 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 |
|---|---|
Weapon |
Weaponry.getCurrentWeapon()
Retrieves current weapon from the agent's inventory.
|
Weapon |
Weaponry.getWeapon(ItemType weaponType)
Returns
Weapon instance for given 'weaponType' if the bot posses it. |
| Modifier and Type | Method and Description |
|---|---|
Map<ItemType,Weapon> |
Weaponry.getLoadedMeleeWeapons()
Retrieves loaded melee weapons from the agent's inventory.
|
Map<ItemType,Weapon> |
Weaponry.getLoadedRangedWeapons()
Retrieves loaded ranged weapons from the agent's inventory.
|
Map<ItemType,Weapon> |
Weaponry.getLoadedWeapons()
Retrieves all loaded weapons from the agent's inventory.
|
Map<ItemType,Weapon> |
Weaponry.getMeleeWeapons()
Retrieves melee weapons from the agent's inventory.
|
Map<ItemType,Weapon> |
Weaponry.getRangedWeapons()
Retrieves ranged weapons from the agent's inventory.
|
Map<ItemType,Weapon> |
Weaponry.getWeapons()
Retrieves all weapons from the agent's inventory.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Weaponry.changeWeapon(Weapon weapon)
Changes the weapon the bot is currently holding (if the weapon's ammo is > 0).
|
| Modifier and Type | Method and Description |
|---|---|
WeaponPrefsRange |
WeaponPrefsRange.add(Weapon weapon,
boolean usePrimaryMode)
Adds another weapon as "the least preferable" one, i.e., you may define
weapons from the most preferred to the least preferred by sequentially calling this method.
|
WeaponPrefs |
WeaponPrefs.addGeneralPref(Weapon weapon,
boolean usePrimaryMode)
Adds another weapon as "the least preferable" one into general-preferences (used if no weapons are found for a given range)
You may define weapons from the most preferred to the least preferred by sequentially calling this method.
|
| Constructor and Description |
|---|
WeaponPref(Weapon weapon,
boolean primary)
Use 'weapon' and the concrete mode.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ImprovedShooting.changeWeapon(Weapon weapon)
Changes the weapon the bot is currently holding (if the bot has the weapon and its ammo > 0).
|
boolean |
ImprovedShooting.changeWeaponNow(Weapon weapon)
Changes the weapon the bot is currently holding (if the bot has the weapon and its ammo > 0).
|
boolean |
ImprovedShooting.shoot(Weapon weapon,
boolean usePrimaryMode,
ILocated target)
Will start shooting with
getType() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shoot(Weapon weapon,
boolean usePrimaryMode,
UnrealId target)
Will start shooting with
getType() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shootNow(Weapon weapon,
boolean usePrimaryMode,
ILocated target)
Will start shooting with
getType() primary/secondary (as specified) at 'target'. |
boolean |
ImprovedShooting.shootNow(Weapon weapon,
boolean usePrimaryMode,
UnrealId target)
Will start shooting with
getType() 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.