Package org.rspeer.game.scene
Class Projection
- java.lang.Object
-
- org.rspeer.game.scene.Projection
-
public class Projection extends Object
Provides tile/screen translation operations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Projection.Canvas
static class
Projection.Setting
-
Constructor Summary
Constructors Constructor Description Projection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Polygon
getPositionPolygon(Projection.Canvas canvas, Position position)
static boolean
isInFieldOfView(SceneNode source, SceneNode target)
static boolean
isInFieldOfView(SceneNode source, SceneNode target, CollisionFlagOverride override)
static Point
toScreen(Projection.Canvas canvas, Position position)
static Point
toScreen(Projection.Canvas canvas, Position position, EnumSet<Projection.Setting> settings)
-
-
-
Method Detail
-
isInFieldOfView
public static boolean isInFieldOfView(SceneNode source, SceneNode target, CollisionFlagOverride override)
-
toScreen
public static Point toScreen(Projection.Canvas canvas, Position position, EnumSet<Projection.Setting> settings)
-
toScreen
public static Point toScreen(Projection.Canvas canvas, Position position)
-
getPositionPolygon
public static Polygon getPositionPolygon(Projection.Canvas canvas, Position position)
-
-