|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.CriticalSlot
public class CriticalSlot
| Field Summary | |
|---|---|
static int |
TYPE_EQUIPMENT
|
static int |
TYPE_SYSTEM
|
| Constructor Summary | |
|---|---|
CriticalSlot(int type,
int index)
|
|
CriticalSlot(int type,
int index,
boolean hittable,
boolean armored,
Mounted mount)
|
|
CriticalSlot(int type,
int index,
boolean hittable,
Mounted mount)
|
|
CriticalSlot(int type,
Mounted mount)
|
|
CriticalSlot(int type,
Mounted mount,
boolean hittable)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Two CriticalSlots are equal if their type and index are equal |
int |
getIndex()
|
Mounted |
getMount()
|
int |
getType()
|
boolean |
isArmored()
|
boolean |
isBreached()
|
boolean |
isDamaged()
Has this slot been damaged? |
boolean |
isDestroyed()
|
boolean |
isEverHittable()
Was this critical slot ever hittable? |
boolean |
isHit()
|
boolean |
isHittable()
Can this slot be hit by a critical hit roll? |
boolean |
isMissing()
|
boolean |
isRepairable()
|
boolean |
isRepairing()
is the slot being repaired? |
void |
setArmored(boolean armored)
|
void |
setBreached(boolean breached)
|
void |
setDestroyed(boolean destroyed)
Set this Mounted's destroyed status NOTE: only set this if this Mounted cannot be used in the current phase anymore. |
void |
setHit(boolean hit)
set that this CriticalSlot was or was not hit with a crit this phase Note: stuff that was hit in a phase can still be used in that phase, if that's not desired, use setDestroyed instead |
void |
setIndex(int i)
|
void |
setMissing(boolean missing)
|
void |
setMount(Mounted mount)
|
void |
setRepairable(boolean repair)
|
void |
setRepairing(boolean repairing)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_SYSTEM
public static final int TYPE_EQUIPMENT
| Constructor Detail |
|---|
public CriticalSlot(int type,
int index)
public CriticalSlot(int type,
int index,
boolean hittable,
Mounted mount)
public CriticalSlot(int type,
int index,
boolean hittable,
boolean armored,
Mounted mount)
public CriticalSlot(int type,
Mounted mount)
public CriticalSlot(int type,
Mounted mount,
boolean hittable)
| Method Detail |
|---|
public int getType()
public int getIndex()
public void setIndex(int i)
public boolean isHit()
public void setHit(boolean hit)
hit - setDestroyed(boolean)public boolean isDestroyed()
public void setDestroyed(boolean destroyed)
destroyed - setHit(boolean)public boolean isMissing()
public void setMissing(boolean missing)
public boolean isBreached()
public void setBreached(boolean breached)
public boolean isDamaged()
public boolean isHittable()
public boolean isEverHittable()
public boolean isRepairing()
public void setRepairing(boolean repairing)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic void setMount(Mounted mount)
mount - the mount to setpublic Mounted getMount()
public void setArmored(boolean armored)
public boolean isArmored()
public void setRepairable(boolean repair)
public boolean isRepairable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||