|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.actions.AbstractEntityAction
megamek.common.actions.AbstractAttackAction
megamek.common.actions.PhysicalAttackAction
megamek.common.actions.ClubAttackAction
public class ClubAttackAction
The attacker makes a club attack on the target. This also covers mech melee weapons like hatchets.
| Constructor Summary | |
|---|---|
ClubAttackAction(int entityId,
int targetType,
int targetId,
Mounted club,
int aimTable)
|
|
ClubAttackAction(int entityId,
int targetId,
Mounted club,
int aimTable)
Creates new ClubAttackAction |
|
| Method Summary | |
|---|---|
Mounted |
getClub()
|
static int |
getDamageFor(Entity entity,
Mounted club,
boolean targetInfantry)
Damage that the specified mech does with a club attack |
void |
setClub(Mounted club)
|
ToHitData |
toHit(IGame game)
|
static ToHitData |
toHit(IGame game,
int attackerId,
Targetable target,
Mounted club,
int aimTable)
To-hit number for the specified club to hit |
| Methods inherited from class megamek.common.actions.PhysicalAttackAction |
|---|
setCommonModifiers, toHitIsImpossible |
| Methods inherited from class megamek.common.actions.AbstractAttackAction |
|---|
getEntity, getTarget, getTargetId, getTargetType, nightModifiers, setTargetId, setTargetType |
| Methods inherited from class megamek.common.actions.AbstractEntityAction |
|---|
getEntityId, setEntityId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface megamek.common.actions.EntityAction |
|---|
getEntityId, setEntityId |
| Constructor Detail |
|---|
public ClubAttackAction(int entityId,
int targetId,
Mounted club,
int aimTable)
public ClubAttackAction(int entityId,
int targetType,
int targetId,
Mounted club,
int aimTable)
| Method Detail |
|---|
public static int getDamageFor(Entity entity,
Mounted club,
boolean targetInfantry)
public ToHitData toHit(IGame game)
public static ToHitData toHit(IGame game,
int attackerId,
Targetable target,
Mounted club,
int aimTable)
public Mounted getClub()
public void setClub(Mounted club)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||