use of main.game.bf.Coordinates in project Eidolons by IDemiurge.
the class MapPointMaster method clicked.
public void clicked(int x, int y) {
// Eidolons.getLauncher().getScreen().
new Thread(new Runnable() {
public void run() {
String name = DialogMaster.inputText("Enter location's name", last);
if (name != null)
last = name;
else
return;
map.put(name, new Coordinates(true, x, y));
GuiEventManager.trigger(MapEvent.LOCATION_ADDED, new ImmutablePair(name, map.get(name)));
}
}, " thread").start();
}
use of main.game.bf.Coordinates in project Eidolons by IDemiurge.
the class MapMoveLayers method spawn.
private void spawn(MapMoveLayer container, String mapArea) {
Coordinates c = MacroGame.getGame().getPointMaster().getCoordinates(mapArea);
spawn(container, c.x, c.y, DEFAULT_AREA_SIZE, DEFAULT_AREA_SIZE);
}
use of main.game.bf.Coordinates in project Eidolons by IDemiurge.
the class MapParticles method load.
public void load(String data, DAY_TIME time) {
for (String sub : StringMaster.openContainer(data)) {
String pos = VariableManager.getVarPart(sub);
Coordinates c = new Coordinates(true, pos);
try {
create((VariableManager.removeVarPart(sub)).trim(), c.x, c.y, time);
} catch (Exception e) {
main.system.ExceptionMaster.printStackTrace(e);
main.system.auxiliary.log.LogMaster.log(1, "failed to l: " + sub);
}
}
}
use of main.game.bf.Coordinates in project Eidolons by IDemiurge.
the class PartyActor method setPosition.
@Override
public void setPosition(float x, float y) {
super.setPosition(x, y);
party.setCoordinates(new Coordinates(getX() + getWidth() / 2, getY() + getHeight() / 2));
}
use of main.game.bf.Coordinates in project Eidolons by IDemiurge.
the class MapScreen method centerCamera.
public void centerCamera() {
Coordinates coordinatesActiveObj = objectStage.getMainParty().getCoordinates();
Vector2 unitPosition = new Vector2(coordinatesActiveObj.x, coordinatesActiveObj.y);
cameraPan(unitPosition);
}
Aggregations