Package org.rspeer.game.scene
Class Projection
java.lang.Object
org.rspeer.game.scene.Projection
Provides tile/screen translation operations
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
Field Details
-
SINE
public static final int[] SINE -
COSINE
public static final int[] COSINE
-
-
Constructor Details
-
Projection
public Projection()
-
-
Method Details
-
isInFieldOfView
-
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
-
getPositionPolygon
-