|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.weapons.WeaponHandler
megamek.common.weapons.AmmoWeaponHandler
public class AmmoWeaponHandler
| Field Summary | |
|---|---|
(package private) Mounted |
ammo
|
| Fields inherited from class megamek.common.weapons.WeaponHandler |
|---|
ae, announcedEntityFiring, attackValue, bDirect, bGlancing, bMissed, bSalvo, damageType, game, generalDamageType, insertedAttacks, missed, nDamPerHit, nRange, nukeS2S, nweapons, roll, server, subjectId, target, throughFront, toHit, underWater, waa, weapon, wtype |
| Constructor Summary | |
|---|---|
protected |
AmmoWeaponHandler()
|
|
AmmoWeaponHandler(ToHitData t,
WeaponAttackAction w,
IGame g,
Server s)
|
| Method Summary | |
|---|---|
protected void |
checkAmmo()
|
protected int |
getNumberWeapons()
For ammo weapons, this number can be less than the full number if the amount of ammo is not high enough |
protected void |
useAmmo()
|
| Methods inherited from class megamek.common.weapons.WeaponHandler |
|---|
addHeat, allShotsHit, announcedEntityFiring, calcAttackValue, calcDamagePerHit, calcHits, calcnCluster, canDoDirectBlowDamage, cares, checkTerrain, doChecks, getAttackerId, getBracketingMultiplier, getCapMisMod, getWaa, handle, handleBuildingDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, handleSpecialMiss, insertAttacks, reportMiss, setAnnouncedEntityFiring, setDone, specialResolution, usesClusterTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
Mounted ammo
| Constructor Detail |
|---|
protected AmmoWeaponHandler()
public AmmoWeaponHandler(ToHitData t,
WeaponAttackAction w,
IGame g,
Server s)
t - w - g - | Method Detail |
|---|
protected void useAmmo()
useAmmo in class WeaponHandlerprotected void checkAmmo()
protected int getNumberWeapons()
getNumberWeapons in class WeaponHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||