|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Weapon | |
---|---|
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. |
Uses of Weapon in cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric |
---|
Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric that return Weapon | |
---|---|
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. |
Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric that return types with arguments of type Weapon | |
---|---|
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. |
Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric with parameters of type Weapon | |
---|---|
boolean |
Weaponry.changeWeapon(Weapon weapon)
Changes the weapon the bot is currently holding (if the weapon's ammo is > 0). |
Uses of Weapon in cz.cuni.amis.pogamut.ut2004.agent.module.sensor |
---|
Methods in cz.cuni.amis.pogamut.ut2004.agent.module.sensor with parameters of type Weapon | |
---|---|
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. |
Constructors in cz.cuni.amis.pogamut.ut2004.agent.module.sensor with parameters of type Weapon | |
---|---|
WeaponPref(Weapon weapon,
boolean primary)
Use 'weapon' and the concrete mode. |
Uses of Weapon in cz.cuni.amis.pogamut.ut2004.bot.command |
---|
Methods in cz.cuni.amis.pogamut.ut2004.bot.command with parameters of type Weapon | |
---|---|
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'. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |