|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.common.ArtilleryTracker
public class ArtilleryTracker
ArtilleryTracker--one held by every entity, it holds a list of the artillery weapons an entity controls, and the mods they get to hit certain hexes.
| Constructor Summary | |
|---|---|
ArtilleryTracker()
Creates new instance of the tracker |
|
| Method Summary | |
|---|---|
void |
addWeapon(Mounted mounted)
Adds new weapon |
int |
getModifier(Mounted weapon,
Coords coords)
Returns the modifier for the given weapon |
protected megamek.common.ArtilleryTracker.ArtilleryModifier |
getModifierByCoords(java.util.Vector<megamek.common.ArtilleryTracker.ArtilleryModifier> modifiers,
Coords coords)
Search the given vector of modifires for the modifier which coords equals to the given coords |
protected java.util.Vector<megamek.common.ArtilleryTracker.ArtilleryModifier> |
getWeaponModifiers(Mounted mounted)
Returns the Vector of the modifiers for the given weapon |
void |
setModifier(Mounted weapon,
int modifier,
Coords coords)
Sets the modifier for the given weapon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArtilleryTracker()
| Method Detail |
|---|
public void addWeapon(Mounted mounted)
mounted - new weapon
public void setModifier(Mounted weapon,
int modifier,
Coords coords)
weapon - weapon to set modifier formodifier - coords -
public int getModifier(Mounted weapon,
Coords coords)
weapon - weapon to get modifier forcoords -
protected java.util.Vector<megamek.common.ArtilleryTracker.ArtilleryModifier> getWeaponModifiers(Mounted mounted)
Vector of the modifiers for the given weapon
mounted - weapon to get modifiers for
Vector of the modifiers for the given weapon
protected megamek.common.ArtilleryTracker.ArtilleryModifier getModifierByCoords(java.util.Vector<megamek.common.ArtilleryTracker.ArtilleryModifier> modifiers,
Coords coords)
modifiers - Vector of the modifiers to processcoords - coordinates of the modifire looked for
null
if not found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||