Search in sources :

Example 1 with DC_BattleFieldGrid

use of eidolons.swing.components.battlefield.DC_BattleFieldGrid in project Eidolons by IDemiurge.

the class DC_Game method battleInit.

public void battleInit() {
    // SpellGenerator.init();
    setSimulation(false);
    ActionGenerator.init();
    getRules().getIlluminationRule().clearCache();
    inventoryTransactionManager = new InventoryTransactionManager(this);
    inventoryManager = new DC_InventoryManager(this);
    battleMaster.init();
    dungeonMaster.init();
    setOffline(true);
    // if (battlefield == null) {
    battlefield = new DC_BattleField(new DC_BattleFieldGrid(getDungeon()));
    battleFieldManager = new DC_BattleFieldManager(this);
    getMovementManager().setGrid(battlefield.getGrid());
    if (AI_ON) {
        aiManager = new AI_Manager(this);
        aiManager.init();
    }
    setBattleInit(true);
}
Also used : DC_BattleFieldGrid(eidolons.swing.components.battlefield.DC_BattleFieldGrid) InventoryTransactionManager(eidolons.ability.InventoryTransactionManager) DC_BattleField(eidolons.game.battlecraft.logic.battlefield.DC_BattleField) DC_InventoryManager(eidolons.client.cc.gui.lists.dc.DC_InventoryManager) DC_BattleFieldManager(eidolons.game.battlecraft.logic.battlefield.DC_BattleFieldManager) AI_Manager(eidolons.game.battlecraft.ai.AI_Manager)

Aggregations

InventoryTransactionManager (eidolons.ability.InventoryTransactionManager)1 DC_InventoryManager (eidolons.client.cc.gui.lists.dc.DC_InventoryManager)1 AI_Manager (eidolons.game.battlecraft.ai.AI_Manager)1 DC_BattleField (eidolons.game.battlecraft.logic.battlefield.DC_BattleField)1 DC_BattleFieldManager (eidolons.game.battlecraft.logic.battlefield.DC_BattleFieldManager)1 DC_BattleFieldGrid (eidolons.swing.components.battlefield.DC_BattleFieldGrid)1