001package com.fs.starfarer.api.impl.campaign.enc; 002 003import org.lwjgl.util.vector.Vector2f; 004 005import com.fs.starfarer.api.campaign.LocationAPI; 006 007public class EncounterPoint { 008 public String id; 009 public LocationAPI where; 010 public Vector2f loc; 011 public String type; 012 public Object custom; 013 014 public EncounterPoint(String id, LocationAPI where, Vector2f loc, String type) { 015 this.id = id; 016 this.where = where; 017 this.loc = loc; 018 this.type = type; 019 } 020 021 public Vector2f getLocInHyper() { 022 Vector2f loc = this.loc; 023 if (!where.isHyperspace()) { 024 loc = where.getLocation(); 025 } 026 return loc; 027 } 028 029 @Override 030 public String toString() { 031 return "id:" + id + ", where:" + where + ", loc: " + loc + ", type: " + type; 032 } 033 034 035 036}