|
|
@ -31,6 +31,16 @@ import java.util.concurrent.ThreadLocalRandom; |
|
|
|
|
|
|
|
|
|
|
|
public enum CombatManager { |
|
|
|
public enum CombatManager { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MB Dev notes:
|
|
|
|
|
|
|
|
// Class implements all combat mechanics for Magicbane.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Combat initiates in "combatCycle" to determine which hands will be swung, and attack is processed based on that.
|
|
|
|
|
|
|
|
// Handles all combat for AbstractCharacter including player characters and mobiles.
|
|
|
|
|
|
|
|
// Controls toggling of combat and sit/stand for all AbstractCharacters
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
COMBAT_MANAGER; |
|
|
|
COMBAT_MANAGER; |
|
|
|
|
|
|
|
|
|
|
|
public static void combatCycle(AbstractCharacter attacker, AbstractWorldObject target) { |
|
|
|
public static void combatCycle(AbstractCharacter attacker, AbstractWorldObject target) { |
|
|
|