|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.core.Unit | +--gecco.game.dke.WarUnit | +--gecco.game.dke3.WarUnitDKE3
WarUnitDKE3.java Created: Mon Jan 19 12:08:24 2004
Field Summary |
Fields inherited from class gecco.game.dke.WarUnit |
attackInitiated, regainingStrength, underAttackInitiated |
Fields inherited from class gecco.server.core.Unit |
activeAction, blockedActions, commander, handle, intX, intY, isDestroyed, name, observers, properties, type, unitType, updatedActions, updatedProperties, x, y |
Fields inherited from interface gecco.server.replaymanager.ReplayReady |
AUTOMATON, MOVING_ACTION, UNIT |
Constructor Summary | |
WarUnitDKE3()
|
Method Summary | |
Collection |
getAutomatonsWithin(int range)
getAutomatonsWithin returns the Automatons
that is within range from the unit |
double |
getCombatExtendTime()
getCombatExtendTime overrides parent |
double |
getDisturbedTime()
getDisturbedTime overrides parent |
double |
getIndirectFireExtendTime()
getIndirectFireExtendTime overrides parent |
int |
getRegainStrengthTime()
getRegainStrengthTime overrides parent |
double |
getReloadExtendTime()
getReloadExtendTime overrides parent |
Unit |
getTargetForAutoIndirectFire()
getTargetForAutoIndirectFire returns a WarUnit from
a alian force that is in combat and is whithin fire range. |
double |
getTimeToShowIndirectFire()
getTimeToShowIndirectFire
|
void |
init()
This method is called once before the game starts. |
boolean |
isAutoFire()
Get the AutoFire value. |
boolean |
isReadyForAutoIndirectFire()
isReadyForAutoIndirectFire |
void |
sendCombatEndedMessage(int ownDamage,
int enemyDamage)
Overrides parent In DKE3 we don't use combat result messages |
void |
setAutoFire(boolean newAutoFire)
Set the AutoFire value. |
void |
updateStatus()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WarUnitDKE3()
Method Detail |
public void init()
Unit
init
in class WarUnit
public boolean isAutoFire()
public void setAutoFire(boolean newAutoFire)
newAutoFire
- The new AutoFire value.public boolean isReadyForAutoIndirectFire()
isReadyForAutoIndirectFire
boolean
valuepublic Unit getTargetForAutoIndirectFire()
getTargetForAutoIndirectFire
returns a WarUnit from
a alian force that is in combat and is whithin fire range. If no such WarUnit
is found null
is returned
Unit
valuepublic double getIndirectFireExtendTime()
getIndirectFireExtendTime
overrides parent
getIndirectFireExtendTime
in class WarUnit
double
valuepublic double getReloadExtendTime()
getReloadExtendTime
overrides parent
getReloadExtendTime
in class WarUnit
double
valuepublic double getTimeToShowIndirectFire()
getTimeToShowIndirectFire
getTimeToShowIndirectFire
in class WarUnit
double
valuepublic double getDisturbedTime()
getDisturbedTime
overrides parent
getDisturbedTime
in class WarUnit
double
valuepublic double getCombatExtendTime()
getCombatExtendTime
overrides parent
getCombatExtendTime
in class WarUnit
double
valuepublic int getRegainStrengthTime()
getRegainStrengthTime
overrides parent
getRegainStrengthTime
in class WarUnit
int
valuepublic Collection getAutomatonsWithin(int range)
getAutomatonsWithin
returns the Automatons
that is within range from the unit
range
- an int
value
Collection
valuepublic void sendCombatEndedMessage(int ownDamage, int enemyDamage)
sendCombatEndedMessage
in class WarUnit
ownDamage
- an int
valueenemyDamage
- an int
valuepublic void updateStatus()
updateStatus
in class WarUnit
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |