Search in sources :

Example 1 with MapPointMaster

use of eidolons.libgdx.screens.map.editor.MapPointMaster in project Eidolons by IDemiurge.

the class MacroGame method init.

@Override
public void init() {
    loop = new MacroGameLoop(this);
    ref = new MacroRef(this);
    state = new MacroGameState(this);
    manager = new MacroGameManager(this);
    master = new MacroGameMaster(this);
    logManager = new Journal(this);
    idManager = new DC_IdManager();
    turnRules = new DequeImpl<>();
    turnRules.add(new HungerRule());
    initObjTypes();
    ObjType cType = DataManager.getType(MacroManager.getCampaignName(), MACRO_OBJ_TYPES.CAMPAIGN);
    campaign = new Campaign(this, cType, ref);
    TimeMaster.setCampaign(campaign);
    world = WorldGenerator.generateWorld(ref);
    MacroManager.setWorldName(world.getName());
    // Region region;
    // region = world.getRegion(campaign.getProperty(MACRO_PROPS.REGION));
    // ref.setID(MACRO_KEYS.REGION.toString(), region.getId());
    // ref.setRegion(region);
    pointMaster = new MapPointMaster();
    routeMaster = new RouteMaster();
}
Also used : MapPointMaster(eidolons.libgdx.screens.map.editor.MapPointMaster) DC_IdManager(eidolons.entity.DC_IdManager) ObjType(main.entity.type.ObjType) HungerRule(eidolons.game.module.adventure.rules.HungerRule)

Aggregations

DC_IdManager (eidolons.entity.DC_IdManager)1 HungerRule (eidolons.game.module.adventure.rules.HungerRule)1 MapPointMaster (eidolons.libgdx.screens.map.editor.MapPointMaster)1 ObjType (main.entity.type.ObjType)1