Package net.sf.colossus.server
Class BattleStrikeServerSide
- java.lang.Object
-
- net.sf.colossus.server.BattleStrikeServerSide
-
public class BattleStrikeServerSide extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BattleStrikeServerSide(Game game)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
getAttackerSkill(Creature striker, Creature target, boolean rangestrike)
WARNING: this is duplicated in BattleClientSideprivate Battle
getBattle()
int
getDice(Creature striker, Creature target, boolean rangestrike)
WARNING: this is currently still duplicated in game.BattleStrikeprotected int
getDice(CreatureServerSide striker, Creature target)
Return the number of dice that will be rolled when striking this target, including modifications for terrain.int
getStrikeNumber(Creature striker, Creature target, boolean rangestrike)
int
getStrikeNumber(CreatureServerSide striker, Creature target)
WARNING: this is duplicated in BattleClientSide
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
game
private final Game game
-
-
Constructor Detail
-
BattleStrikeServerSide
public BattleStrikeServerSide(Game game)
-
-
Method Detail
-
getDice
protected int getDice(CreatureServerSide striker, Creature target)
Return the number of dice that will be rolled when striking this target, including modifications for terrain. WARNING: this is currently still duplicated in game.BattleStrike- Parameters:
striker
- TODOtarget
- TODO
-
getDice
public int getDice(Creature striker, Creature target, boolean rangestrike)
WARNING: this is currently still duplicated in game.BattleStrike
-
getAttackerSkill
int getAttackerSkill(Creature striker, Creature target, boolean rangestrike)
WARNING: this is duplicated in BattleClientSide- Parameters:
striker
- TODOtarget
- TODOrangestrike
- TODO
-
getStrikeNumber
public int getStrikeNumber(CreatureServerSide striker, Creature target)
WARNING: this is duplicated in BattleClientSide- Parameters:
striker
- TODOtarget
- TODO
-
getBattle
private Battle getBattle()
-
-