megamek.client.bot
Class PhysicalOption

java.lang.Object
  extended by megamek.client.bot.PhysicalOption

public class PhysicalOption
extends java.lang.Object

TODO: add more options, pushing, kick both for quad mechs, etc. also, what are the conditions for multiple physical attacks?


Field Summary
(package private)  Entity attacker
           
static int BRUSH_BOTH
           
static int BRUSH_LEFT
           
static int BRUSH_RIGHT
           
(package private)  Mounted club
           
(package private)  double expectedDmg
           
(package private)  INarcPod i_target
           
static int KICK_LEFT
           
static int KICK_RIGHT
           
static int NONE
           
static int PUNCH_BOTH
           
static int PUNCH_LEFT
           
static int PUNCH_RIGHT
           
static int PUSH_ATTACK
           
(package private)  Entity target
           
static int THRASH_INF
           
static int TRIP_ATTACK
           
(package private)  int type
           
static int USE_CLAW
           
static int USE_CLUB
           
 
Constructor Summary
PhysicalOption(Entity attacker)
           
PhysicalOption(Entity attacker, Targetable target, double dmg, int type, Mounted club)
           
 
Method Summary
 java.util.Vector<EntityAction> getVector()
           
 AbstractAttackAction toAction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

PUNCH_LEFT

public static final int PUNCH_LEFT
See Also:
Constant Field Values

PUNCH_RIGHT

public static final int PUNCH_RIGHT
See Also:
Constant Field Values

PUNCH_BOTH

public static final int PUNCH_BOTH
See Also:
Constant Field Values

KICK_LEFT

public static final int KICK_LEFT
See Also:
Constant Field Values

KICK_RIGHT

public static final int KICK_RIGHT
See Also:
Constant Field Values

USE_CLUB

public static final int USE_CLUB
See Also:
Constant Field Values

USE_CLAW

public static final int USE_CLAW
See Also:
Constant Field Values

PUSH_ATTACK

public static final int PUSH_ATTACK
See Also:
Constant Field Values

TRIP_ATTACK

public static final int TRIP_ATTACK
See Also:
Constant Field Values

BRUSH_LEFT

public static final int BRUSH_LEFT
See Also:
Constant Field Values

BRUSH_RIGHT

public static final int BRUSH_RIGHT
See Also:
Constant Field Values

BRUSH_BOTH

public static final int BRUSH_BOTH
See Also:
Constant Field Values

THRASH_INF

public static final int THRASH_INF
See Also:
Constant Field Values

attacker

Entity attacker

target

Entity target

i_target

INarcPod i_target

expectedDmg

double expectedDmg

type

int type

club

Mounted club
Constructor Detail

PhysicalOption

public PhysicalOption(Entity attacker)

PhysicalOption

public PhysicalOption(Entity attacker,
                      Targetable target,
                      double dmg,
                      int type,
                      Mounted club)
Method Detail

toAction

public AbstractAttackAction toAction()

getVector

public java.util.Vector<EntityAction> getVector()