|
|
|
@ -11,6 +11,8 @@ import java.util.List;
|
|
|
|
|
* Describes a placed-beacon-teleporter in the world
|
|
|
|
|
*/
|
|
|
|
|
public abstract class LinkedBeaconTeleporter {
|
|
|
|
|
static String id_alphabet = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
|
|
|
static int id_length = 10;
|
|
|
|
|
|
|
|
|
|
// Persistent id for linked-beacons
|
|
|
|
|
public String teleporterId;
|
|
|
|
@ -19,7 +21,7 @@ public abstract class LinkedBeaconTeleporter {
|
|
|
|
|
protected List<LinkedBeaconTeleporter> linkedBeaconTeleporters = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
LinkedBeaconTeleporter(){
|
|
|
|
|
this.teleporterId = Function.randomString("abcdefghijklmnopqrstuvwxyz0123456789", 10);
|
|
|
|
|
this.teleporterId = Function.randomString(id_alphabet, id_length);
|
|
|
|
|
|
|
|
|
|
linkedBeaconTeleporters = new ArrayList<>();
|
|
|
|
|
}
|
|
|
|
|