|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FiringCapableElement
| Method Summary | |
|---|---|
void |
applyFiringSummary(GameElementFiringSummary gefs)
function called to apply firing summary to element. |
boolean |
canFire(int turn)
Returns whether this unit can make a firing attempt on a particular turn |
boolean |
canFireIndirect(int turn)
Returns whether this unit can make an indirect firing attempt on a particular turn |
GameElementFiringSummary |
getFiringSummary(int turn)
get a new GameElementFiringSummary object appropriate to the object implementing this interface |
void |
weaponFired(java.lang.String weaponName,
java.lang.String ammoType,
int weaponIndex)
This is called when an element fires a weapon |
| Method Detail |
|---|
boolean canFire(int turn)
turn - The turn that we're checking the element can fire
boolean canFireIndirect(int turn)
turn - The turn that we're checking the element can fire indirectly
GameElementFiringSummary getFiringSummary(int turn)
void applyFiringSummary(GameElementFiringSummary gefs)
gefs - Applies all of the firing information contained in the GameElementFiringSummary.
This is primarily used to capture ammunition expenditure
void weaponFired(java.lang.String weaponName,
java.lang.String ammoType,
int weaponIndex)
weaponName - The name of the weapon system firingammoType - The ammo type used in the firing attemptweaponIndex - The index of the weapon system firing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||