net.sf.colossus.server
Class BattleStrikeServerSide

java.lang.Object
  extended by net.sf.colossus.server.BattleStrikeServerSide

public class BattleStrikeServerSide
extends java.lang.Object


Field Summary
private  Game game
           
private static java.util.logging.Logger LOGGER
           
 
Constructor Summary
BattleStrikeServerSide(Game game)
           
 
Method Summary
(package private)  int getAttackerSkill(Creature striker, Creature target, boolean rangestrike)
          WARNING: this is duplicated in BattleClientSide
private  Battle getBattle()
           
 int getDice(Creature striker, Creature target, boolean rangestrike)
          WARNING: this is currently still duplicated in game.BattleStrike
protected  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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 - TODO
target - 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 - TODO
target - TODO
rangestrike - TODO

getStrikeNumber

public int getStrikeNumber(CreatureServerSide striker,
                           Creature target)
WARNING: this is duplicated in BattleClientSide

Parameters:
striker - TODO
target - TODO

getStrikeNumber

public int getStrikeNumber(Creature striker,
                           Creature target,
                           boolean rangestrike)

getBattle

private Battle getBattle()