Browse Source

Added MB Dev Notes

combat-2
FatBoy-DOTC 8 months ago
parent
commit
753c3686ea
  1. 10
      src/engine/gameManager/CombatManager.java
  2. 10
      src/engine/gameManager/LootManager.java
  3. 6
      src/engine/mobileAI/MobAI.java

10
src/engine/gameManager/CombatManager.java

@ -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) {

10
src/engine/gameManager/LootManager.java

@ -25,6 +25,16 @@ import java.util.concurrent.ThreadLocalRandom;
*/ */
public enum LootManager { public enum LootManager {
// MB Dev notes:
// Class implements all loot generation mechanics for Magicbane.
// Class handles variables like drop rates
// Generation initiates in GenerateMobLoot and is passed a mobile
// Utilized database tables:
// - static_loot_bootySet - static_loot_gen - static_loot_item - static_loot_mod - static_loot_modtype
// Class also handles mechanic for Fate Peddler
//
LOOTMANAGER; LOOTMANAGER;
// Newer tables // Newer tables

6
src/engine/mobileAI/MobAI.java

@ -37,6 +37,12 @@ import static engine.math.FastMath.sqr;
public class MobAI { public class MobAI {
// MB Dev notes:
// Class implements mobile AI mechanics for Magicbane.
//
// Controls all mob actions from regular mobs to pets and guards.
// Initiates in the "DetermineAction" method and branches from there
//
private static void attackTarget(Mob mob, AbstractWorldObject target) { private static void attackTarget(Mob mob, AbstractWorldObject target) {

Loading…
Cancel
Save