|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.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(java.lang.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? |
java.lang.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 modepublic WeaponPref(Weapon weapon, boolean primary)
weapon
- primary
- true == use primary firing mode, false == use secondary firing modeMethod Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ItemType getWeapon()
public boolean isPrimary()
public boolean isSecondary()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |