|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.module.sensor.WeaponPref
public class WeaponPref
Class that contains a weapon preference. I.e., stating:
| Constructor Summary | |
|---|---|
WeaponPref(ItemType weapon)
Use 'weapon' with primary-firing-mode. |
|
WeaponPref(ItemType weapon,
boolean primary)
Use 'weapon' and the concrete mode. |
|
WeaponPref(Weapon weapon,
boolean primary)
Use 'weapon' and the concrete mode. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
ItemType |
getWeapon()
Which weapon to choose. |
int |
hashCode()
|
boolean |
isPrimary()
Whether to use primary firing mode? |
boolean |
isSecondary()
Whether to use secondary firing mode? |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WeaponPref(ItemType weapon,
boolean primary)
weapon - primary - true == use primary firing mode, false == use secondary firing modepublic WeaponPref(ItemType weapon)
weapon - primary - true == use primary firing mode, false == use secondary firing mode
public WeaponPref(Weapon weapon,
boolean primary)
weapon - primary - true == use primary firing mode, false == use secondary firing mode| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic ItemType getWeapon()
public boolean isPrimary()
public boolean isSecondary()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||