Search in sources :

Example 1 with MAP_OBJ_INFO_LEVEL

use of eidolons.game.module.adventure.map.MapVisionMaster.MAP_OBJ_INFO_LEVEL in project Eidolons by IDemiurge.

the class MacroTimeMaster method processMapObjects.

private void processMapObjects() {
    Coordinates c = MacroGame.getGame().getPlayerParty().getCoordinates();
    for (Place place : MacroGame.getGame().getState().getPlaces()) {
        MAP_OBJ_INFO_LEVEL infoLevel = MAP_OBJ_INFO_LEVEL.UNKNOWN;
        if (place.getCoordinates().dst(c) < 500) {
            infoLevel = MAP_OBJ_INFO_LEVEL.KNOWN;
            place.setDetected(true);
        }
        place.setInfoLevel(infoLevel);
    }
// for (MacroParty party : MacroGame.getGame().getState().getParties()) {
// if (party.getCurrentDestination() == null)
// continue;
// TravelManager.travel(delta);
// TravelMaster.travel(party, delta);
// }
}
Also used : MAP_OBJ_INFO_LEVEL(eidolons.game.module.adventure.map.MapVisionMaster.MAP_OBJ_INFO_LEVEL) Coordinates(main.game.bf.Coordinates) Place(eidolons.game.module.adventure.map.Place)

Aggregations

MAP_OBJ_INFO_LEVEL (eidolons.game.module.adventure.map.MapVisionMaster.MAP_OBJ_INFO_LEVEL)1 Place (eidolons.game.module.adventure.map.Place)1 Coordinates (main.game.bf.Coordinates)1