Package | Description |
---|---|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
squidpony.squidgrid.zone |
Ways to represent different types of areas in 2D space; not recommended, most new code uses
GreasedRegion . |
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Rectangle
Rectangles in 2D grids.
|
Modifier and Type | Class and Description |
---|---|
static class |
Rectangle.Impl |
Modifier and Type | Method and Description |
---|---|
Zone |
Rectangle.Impl.translate(int x,
int y) |
Modifier and Type | Interface and Description |
---|---|
interface |
ImmutableZone
Created by Tommy Ettinger on 11/24/2016.
|
interface |
MutableZone
Created by Tommy Ettinger on 11/24/2016.
|
Modifier and Type | Class and Description |
---|---|
class |
CoordPackerZone
A zone constructed by
CoordPacker . |
class |
ListZone
A zone defined by a
List . |
static class |
Zone.Skeleton
A convenience partial implementation.
|
Modifier and Type | Method and Description |
---|---|
Zone |
ImmutableZone.expand(int distance)
Expands the area of this Zone in the four cardinal directions, performing the expansion consecutively
distance times. |
Zone |
MutableZone.expand(int distance)
Expands this Zone in the four cardinal directions, performing the expansion consecutively
distance times. |
Zone |
ImmutableZone.expand8way(int distance)
Expands the area of this Zone in the four cardinal and four diagonal directions, performing the expansion
consecutively
distance times. |
Zone |
MutableZone.expand8way(int distance)
Expands this Zone in the four cardinal and four diagonal directions, performing the expansion consecutively
distance times. |
Zone |
CoordPackerZone.extend() |
Zone |
Zone.extend()
Gets a new Zone that contains all the Coords in
this plus all
neighboring Coords, which can be orthogonally or diagonally adjacent
to any Coord this has in it. |
Zone |
Zone.Skeleton.extend() |
Zone |
Zone.translate(Coord c) |
Zone |
Zone.Skeleton.translate(Coord c) |
Zone |
CoordPackerZone.translate(int x,
int y) |
Zone |
Zone.translate(int x,
int y) |
Zone |
Zone.Skeleton.translate(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
CoordPackerZone.contains(Zone other) |
boolean |
Zone.contains(Zone other) |
boolean |
Zone.Skeleton.contains(Zone other) |
boolean |
CoordPackerZone.intersectsWith(Zone other) |
boolean |
Zone.intersectsWith(Zone other) |
boolean |
Zone.Skeleton.intersectsWith(Zone other) |
Modifier and Type | Class and Description |
---|---|
class |
GreasedRegion
Region encoding of on/off information about areas using bitsets; uncompressed (fatty), but fast (greased lightning).
|
Modifier and Type | Method and Description |
---|---|
boolean |
GreasedRegion.contains(Zone other)
Checks whether all Coords in
other are also present in this . |
boolean |
GreasedRegion.intersectsWith(Zone other) |
Copyright © Eben Howard 2012–2022. All rights reserved.