A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- a - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "a" key.
- accept - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "accept" key.
- add - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "add" key.
- add(float) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Adds the values of this
Pointf
to the specified float value, and returns a newPointf
with the modified values. - add(int) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Adds the values of this
Point
to the specified integer value, and returns a newPoint
with the modified values. - add(Point) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Adds the values of this
Point
to the specifiedPoint
, and returns a newPoint
with the modified values. - add(Pointf) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Adds the values of this
Pointf
to the specifiedPointf
, and returns a newPointf
with the modified values. - add(Pointf, float) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to add a
Pointf
object by a float value, and return a newPointf
. - add(Pointf, Pointf) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to add two
Pointf
s (from the parameters specified) together, and return a newPointf
object. - add(Point, int) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to add a
Point
object by an integer value, and return a newPoint
. - add(Point, Point) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to add two
Point
s (from the parameters specified) together, and return a newPoint
object. - addAsGameObject(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Adds the
Drawable
to theScene
parameter's list of game objects. - addAsGUIObject(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Adds the
Drawable
to theScene
parameter's list of GUI objects. - addBehavior(Behavior, Scene) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Adds the specified
Behavior
to theGameObject
's list ofBehavior
s. - addBehaviorListener(GameObject) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Adds the specified behavior listener to the scene.
- addGameObject(GameObject) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Adds the specified game object.
- addGUIObject(UIElement) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Adds the specified gui object.
- addKeyboardActionListener(KeyboardActionListener) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Adds the specified
KeyboardActionListener
. - addListener(Scene, GameObject) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Adds the specified behavior listener to the list aliased to the specified
Scene
. - addListenerList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Adds an alias for the specified
Scene
, if one does not already exist. - addMouseActionListener(MouseActionListener) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Adds the specified
MouseActionListener
. - addOnAction(Consumer<MouseEvent>) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Adds the specified action to the UIElement's
onAction
events. - addScene(Scene) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Adds the specified scene into the logic manager.
- addTag(String, Scene) - Method in class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
-
Adds the specified tag to the object's list of tags.
- addTaggableEntity(Scene, Drawable) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Adds the specified taggable entity to the list of taggable entities for the specified scene.
- addTaggableEntity(T) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Adds the specified taggable entity, only if it extends the
Drawable
class. - addTaggableEntityList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Adds the specified
Scene
as an alias to store a list of taggable entities for. - addTagToMasterList(String) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Adds the specified tag to the master list of tags.
- again - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "again" key.
- allCandidates - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "all candidates" key.
- alphanumeric - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "alphanumeric" key.
- alt - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "alt" key.
- altGraph - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "alt graph" key.
- ampersand - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "&" key.
- areKeysDown() - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if any keys are pressed.
- asPointf() - Method in class io.github.lucasstarsz.fastj.math.Point
-
Returns this
Point
as aPointf
object, without modification. - asterisk - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "*" key.
- atSign - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "@" key.
- AVERAGE - io.github.lucasstarsz.fastj.engine.FPSValue
-
Enum constant defining the need to get information on the overall average frame count per second.
B
- b - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "b" key.
- backQuote - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "back quote" key.
- backSlash - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "back slash" key.
- backspace - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "backspace" key.
- begin - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "begin" key.
- Behavior - Interface in io.github.lucasstarsz.fastj.systems.behaviors
-
Interface that allows for the addition of behaviors to
GameObject
s. - BehaviorManager - Class in io.github.lucasstarsz.fastj.systems.behaviors
-
Class to manage behavior listeners for all scenes.
- BehaviorManager() - Constructor for class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
- BOTTOM_LEFT - io.github.lucasstarsz.fastj.graphics.Boundary
-
Bottom left boundary -- array index 3.
- BOTTOM_RIGHT - io.github.lucasstarsz.fastj.graphics.Boundary
-
Bottom right boundary -- array index 2.
- Boundary - Enum in io.github.lucasstarsz.fastj.graphics
-
Defines aliases for the order in which
Drawable
boundaries are ordered in an array. - Button - Class in io.github.lucasstarsz.fastj.ui.elements
-
A
UIElement
that can be assigned an action on left click. - Button(Scene) - Constructor for class io.github.lucasstarsz.fastj.ui.elements.Button
-
Constructs a button with a default location and size.
- Button(Scene, Pointf, Pointf) - Constructor for class io.github.lucasstarsz.fastj.ui.elements.Button
-
Constructs a button with the specified location and initial size.
C
- c - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "c" key.
- CALLED_AFTER_RUN_ERROR - io.github.lucasstarsz.fastj.engine.CrashMessages
-
"The game crashed, due to a method being called that can only be called before the program starts.
- Camera - Class in io.github.lucasstarsz.fastj.render
-
Class that allows for transformation of the
Display
which the camera is passed to. - Camera() - Constructor for class io.github.lucasstarsz.fastj.render.Camera
-
Constructs a
Camera
with transformation set to 0. - Camera(float) - Constructor for class io.github.lucasstarsz.fastj.render.Camera
-
Constructs a
Camera
with rotation set to the specified value, and translation set to 0. - Camera(Pointf) - Constructor for class io.github.lucasstarsz.fastj.render.Camera
-
Constructs a
Camera
with translation set to the specified value, and rotation set to 0. - Camera(Pointf, float) - Constructor for class io.github.lucasstarsz.fastj.render.Camera
-
Constructs a
Camera
with translation and rotation set to the specified values. - cancel - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "cancel" key.
- capsLock - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "caps lock" key.
- centerOf(Pointf[]) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Gets the numerical x and y center of the specified
Pointf
array. - circumflex - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "^" key.
- clear - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "clear" key.
- clearAllBehaviors() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Clears the
GameObject
's list ofBehavior
s. - clearAllLists() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes all game objects and gui objects.
- clearAllLists() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Removes all elements from the scene.
- clearAllLists() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Clears all action listener lists, effectively resetting the input manager.
- clearBehaviorListeners() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Removes all behavior listeners in the scene.
- clearEntityList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Clears the taggable entity list aliased to the specified scene.
- clearGameObjects() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes all game objects from the manager.
- clearGUIObjects() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes all gui objects from the manager.
- clearKeyActionListeners() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Clears the list of keyboard action listeners.
- clearListenerList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Removes all elements from the list aliased to the specified
Scene
. - clearMouseActionListeners() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Clears the list of mouse action listeners.
- clearTaggableEntities() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Removes all taggable from the scene.
- clearTags() - Method in class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
-
Removes all tags from this object's tag list.
- clearTags() - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Removes all the tags from the master list.
- CLICK - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where a mouse button was pressed and released.
- close() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Closes and disposes of the
Display
. - closeBracket - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "close bracket" key.
- closeGame() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Closes the game.
- codeInput - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "code input" key.
- collidesWith(Drawable) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Determines whether or not two objects are colliding (intersection).
- collisionPath - Variable in class io.github.lucasstarsz.fastj.graphics.Drawable
-
The shape defining where the Drawable collides.
- colon - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the ":" key.
- comma - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "comma" key.
- compose - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "compose" key.
- condition(AWTEvent) - Method in interface io.github.lucasstarsz.fastj.ui.EventCondition
-
The condition to check for before firing off event actions in a
UIElement
. - CONFIGURATION_ERROR - io.github.lucasstarsz.fastj.engine.CrashMessages
-
"The game crashed, due to a configuration error."
- configure(int, int, Point, Point, HWAccel) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Configures the game's FPS (Frames Per Second), UPS (Updates Per Second), viewer resolution, internal resolution, and hardware acceleration.
- configureHardwareAcceleration(HWAccel) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Attempts to set the hardware acceleration type of this game engine to the specified parameter.
- configureInternalResolution(Point) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Configures the game's internal resolution.
- configureViewerResolution(Point) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Configures the game's window resolution.
- contextMenu - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "context menu" key.
- control - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "control" key.
- convert - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "convert" key.
- copy - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "copy" key.
- copy() - Method in class io.github.lucasstarsz.fastj.math.Point
-
Gets a copy of the
Point
, and returns the copy. - copy() - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Gets a copy of the
Pointf
, and returns the copy. - CPU_RENDER - io.github.lucasstarsz.fastj.engine.HWAccel
-
Disables all hardware acceleration.
- CrashMessages - Enum in io.github.lucasstarsz.fastj.engine
-
An enum defining a simple and effective way to create and get crash messages in FastJ.
- createBox(float, float, float) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specified x, y, and size floats. - createBox(float, float, float, float) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specified x, y, width, and height floats. - createBox(float, float, Pointf) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specified x and y floats, and sizePointf
. - createBox(Pointf, float) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specified locationPointf
and size float. - createBox(Pointf, Pointf) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specified locationPointf
and sizePointf
. - createBox(Rectangle2D.Float) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on theRectangle2D.Float
parameter. - createBoxFromImage(BufferedImage) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specifiedBufferedImage
. - createBoxFromImage(BufferedImage, Pointf) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array of 4 points, based on the specifiedBufferedImage
and the locationPointf
. - createCollisionOutline(Polygon2D[]) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Pointf
array representing an outline of the specifiedPolygon2D
array. - createPath(Pointf[]) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Path2D.Float
based on the specifiedPointf
array. - createRect(Pointf[]) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Rectangle2D.Float
based on the specifiedPointf
array. - createRectFromImage(BufferedImage, Pointf) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Creates a
Rectangle2D.Float
based on the specifiedBufferedImage
and the locationPointf
. - CURRENT - io.github.lucasstarsz.fastj.engine.FPSValue
-
Enum constant defining the need to get information on the most recently calculated frame count per second.
- cut - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "cut" key.
D
- d - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "d" key.
- deadAbovedot - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead abovedot" key.
- deadAbovering - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead abovering" key.
- deadAcute - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead acute" key.
- deadBreve - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead breve" key.
- deadCaron - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead caron" key.
- deadCedilla - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead cedilla" key.
- deadCircumflex - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead circumflex" key.
- deadDiaeresis - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead diaeresis" key.
- deadDoubleacute - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead doubleacute" key.
- deadGrave - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead grave" key.
- deadIota - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead iota" key.
- deadMacron - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead macron" key.
- deadOgonek - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead ogonek" key.
- deadSemivoicedSound - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead semivoiced sound" key.
- deadTilde - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead tilde" key.
- deadVoicedSound - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "dead voiced sound" key.
- decimal - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "decimal" key.
- DEFAULT - io.github.lucasstarsz.fastj.engine.HWAccel
-
Leaves the configuration of hardware acceleration as the OS-decided default.
- DEFAULT - Static variable in class io.github.lucasstarsz.fastj.render.Camera
-
A camera with no transformations.
- DEFAULT_FONT - Static variable in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
The default font used for drawing
Text2D
objects. - DEFAULT_FPS - Static variable in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Default engine value for frames per second.
- DEFAULT_INTERNAL_RESOLUTION - Static variable in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Default engine value for the internal resolution of the
Display
. - DEFAULT_LOCATION - Static variable in class io.github.lucasstarsz.fastj.ui.elements.Button
-
The default location of a
Button
: (0, 0). - DEFAULT_SIZE - Static variable in class io.github.lucasstarsz.fastj.ui.elements.Button
-
The default size of a
Button
: (100f, 25f). - DEFAULT_UPS - Static variable in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Default engine value for updates per second.
- DEFAULT_WINDOW_RESOLUTION - Static variable in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Default engine value for the window resolution of the
Display
. - defaultColor - Static variable in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Color
representing the default color value of(0, 0, 0)
. - defaultFill - Static variable in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
boolean
representing the default "should fill" value oftrue
. - defaultRotation - Static variable in class io.github.lucasstarsz.fastj.graphics.GameObject
-
float
representing a default rotation value of0f
. - defaultScale - Static variable in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Pointf
representing a default scale of(1f, 1f)
. - defaultShow - Static variable in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
boolean
representing the default "should render" value oftrue
. - defaultTranslation - Static variable in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Pointf
representing a default translation of0f, 0f
. - delete - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "delete" key.
- destroy() - Method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Destroys any leftover memory in the
Behavior
. - destroy(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Destroys all memory the
Drawable
uses. - destroy(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- destroy(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- destroy(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- destroy(Scene) - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
- destroyAllBehaviors() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Calls the
destroy
method of theGameObject
's behaviors. - destroyTheRest(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Destroys the
Drawable
'sDrawable
components, as well as any references theDrawable
has within theScene
parameter. - destroyTheRest(Scene) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Destroys all references of the game object's behaviors and removes it from the scene's list of behavior listeners.
- destroyTheRest(Scene) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Removes the
UIElement
's references in the specified scene as a GUI object and as a mouse listener. - DIRECT3D - io.github.lucasstarsz.fastj.engine.HWAccel
-
Enables Direct 3D Draw hardware acceleration.
- Display - Class in io.github.lucasstarsz.fastj.render
-
Class that draws to a screen using a combination of Swing's JFrame, and AWT's Canvas.
- Display(String, Point, Point) - Constructor for class io.github.lucasstarsz.fastj.render.Display
-
Creates a display with the specified title, viewer resolution, and internal resolution.
- divide - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "divide" key.
- divide(float) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Divides the values of this
Pointf
by the specified float value, and returns a newPointf
with the modified values. - divide(int) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Divides the values of this
Point
by the specified integer value, and returns a newPoint
with the modified values. - divide(Point) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Divides the values of this
Point
by the specifiedPoint
, and returns a newPoint
with the modified values. - divide(Pointf) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Divides the values of this
Pointf
by the specifiedPointf
, and returns a newPointf
with the modified values. - divide(Pointf, float) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to divide a
Pointf
object by a float value, and return a newPointf
. - divide(Pointf, Pointf) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to divide two
Pointf
objects (from the parameters specified) together, and return a newPointf
. - divide(Point, int) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to divide a
Point
object by an integer value, and return a newPoint
. - divide(Point, Point) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to divide two
Point
objects (from the parameters specified) together, and return a newPoint
. - doesTagExist(String) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Determines whether a tag is in the master list.
- dollarSign - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "$" key.
- down - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "down" key.
- DRAG - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where the mouse was moved while a button was clicked.
- Drawable - Class in io.github.lucasstarsz.fastj.graphics
-
The abstract class to objects that can be drawn to a
Display
. - Drawable() - Constructor for class io.github.lucasstarsz.fastj.graphics.Drawable
-
Constructs a
Drawable
, initializing its internal variables. - drawableManager - Variable in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Drawable manager instance for the scene -- it controls the scene's game objects and ui elements.
- DrawableManager - Class in io.github.lucasstarsz.fastj.systems.game
-
Class to manage renderables, or
Drawable
objects. - DrawableManager() - Constructor for class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Initializes a
DrawawbleManager
's internals. - DrawUtil - Class in io.github.lucasstarsz.fastj.graphics
-
Class that provides supplementary methods for working with
Drawable
s. - DrawUtil() - Constructor for class io.github.lucasstarsz.fastj.graphics.DrawUtil
E
- e - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "e" key.
- eight - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "8" key.
- end - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "end" key.
- endProcess(MouseAction) - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Forces a quick end to the specified mouse action.
- enter - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "enter" key.
- ENTER - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where the mouse has moved onto the
Display
. - equals - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "equals" key.
- equals(Object) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
-
Checks for equality between the
Model2D
and the other specified. - equals(Object) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Checks for equality between the
Polygon2D
and the other specified. - equals(Object) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Compares two
Point
s, and returns whether they are equal. - equals(Object) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Compares two
Pointf
s, and returns whether they are equal. - equalsPoint(Point) - Method in class io.github.lucasstarsz.fastj.math.Pointf
- equalsPointf(Pointf) - Method in class io.github.lucasstarsz.fastj.math.Point
- error(T, Exception) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Logs the specified error message, then force closes the game.
- errorMessage - Variable in enum io.github.lucasstarsz.fastj.engine.CrashMessages
-
The error message of the enum constant.
- escape - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "escape" key.
- euroSign - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "Euro currency sign" key.
- EventCondition - Interface in io.github.lucasstarsz.fastj.ui
-
Class to ensure that an event only applies to a
UIElement
if the condition specified is met. - exclamationMark - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "!" key.
- EXIT - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where the mouse has moved off of the
Display
.
F
- f - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f" key.
- f1 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f1" key.
- f10 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f10" key.
- f11 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f11" key.
- f12 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f12" key.
- f13 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f13" key.
- f14 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f14" key.
- f15 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f15" key.
- f16 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f16" key.
- f17 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f17" key.
- f18 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f18" key.
- f19 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f19" key.
- f2 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f2" key.
- f20 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f20" key.
- f21 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f21" key.
- f22 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f22" key.
- f23 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f23" key.
- f24 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f24" key.
- f3 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f3" key.
- f4 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f4" key.
- f5 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f5" key.
- f6 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f6" key.
- f7 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f7" key.
- f8 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f8" key.
- f9 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "f9" key.
- fastj.library - module fastj.library
-
The FastJ Game Library in its entirety.
- FastJEngine - Class in io.github.lucasstarsz.fastj.engine
-
The main control hub of the game engine.
- FastJEngine() - Constructor for class io.github.lucasstarsz.fastj.engine.FastJEngine
- finalKey - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "final" key.
- find - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "find" key.
- fireKeyRecentlyPressed(KeyEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
key recently pressed
event to all listeningKeyboardActionListeners
. - fireKeyReleased(KeyEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
key recently released
event to all listeningKeyboardActionListeners
. - fireKeysDown() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
keys down
event to all listeningKeyboardActionListeners
. - fireKeyTyped(KeyEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
key recently typed
event to all listeningKeyboardActionListeners
. - fireMouseClicked(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse button recently clicked
event to all listeningMouseActionListeners
. - fireMouseDragged(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse dragged
event to all listeningMouseActionListeners
. - fireMouseEntered(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse entered screen
event to all listeningMouseActionListeners
. - fireMouseExited(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse exited screen
event to all listeningMouseActionListeners
. - fireMouseMoved(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse moved
event to all listeningMouseActionListeners
. - fireMousePressed(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse button recently pressed
event to all listeningMouseActionListeners
. - fireMouseReleased(MouseEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse button recently released
event to all listeningMouseActionListeners
. - fireMouseWheelScrolled(MouseWheelEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Fires a
mouse wheel scrolled
event to all listeningMouseActionListeners
. - five - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "5" key.
- four - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "4" key.
- FPSValue - Enum in io.github.lucasstarsz.fastj.engine
-
The different data options available when using
FastJEngine.getFPSData()
. - fullWidth - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "full width" key.
G
- g - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "g" key.
- GameObject - Class in io.github.lucasstarsz.fastj.graphics
-
A type of
Drawable
that must be able to be transformed. - GameObject() - Constructor for class io.github.lucasstarsz.fastj.graphics.GameObject
-
Initializes internals of the
GameObject
. - getAllInListWithTag(Scene, String) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Gets all taggable entities in the specified
Scene
with the specified tag. - getAllWithTag(String) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets all taggable entities with the specified tag.
- getAllWithTag(String) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Gets all taggable entities from all
Scene
s with the specified tag. - getBackground() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the background of the
Display
. - getBackgroundColor() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the color of the background of the
Display
. - getBehaviorListeners() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets the behavior listeners assigned to the scene.
- getBehaviors() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the list of
Behavior
s for theGameObject
. - getBound(Boundary) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets one of the boundaries of the
Drawable
, based on the specifiedBoundary
parameter. - getBounds() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the boundaries of the
Drawable
. - getButtonLastClicked() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value of the button that was last clicked.
- getButtonLastPressed() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value of the button that was last pressed.
- getButtonLastReleased() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value of the button that was last released.
- getCamera() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets the camera of the scene.
- getCanvas() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the
Canvas
of theDisplay
. - getCenter() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the center point of the
Drawable
. - getCollisionPath() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the collision path of the
Drawable
. - getColor() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Gets the color set for this polygon.
- getColor() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Gets the
Color
of thisText2D
. - getCurrentScene() - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Gets the currently active scene.
- getDefaultMonitor() - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the default monitor.
- getDefaultMonitorDimensions() - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the dimensions of the default monitor.
- getDefaultMonitorRefreshRate() - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the refresh rate of the default monitor.
- getDisplay() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the
Display
object associated with the game engine. - getDisplayedTitle() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the title currently being displayed in the title bar of the
Display
. - getElapsedTime() - Method in class io.github.lucasstarsz.fastj.engine.internals.Timer
-
Re-evaluates the last loop time, then returns the elapsed time since the last loop.
- getEntityList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Gets the list of taggable entities at the specified
Scene
. - getFont() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Gets the
Font
of thisText2D
. - getFont() - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Gets the
Font
object for the button. - getFPSData(FPSValue) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the FPS-based value of the parameter specified.
- getGameObjects() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Gets the game objects assigned to the manager.
- getGraphics() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the
Graphics2D
object associated with thisDisplay
, set to the transformation of the current scene's camera. - getGUIObjects() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Gets the gui objects assigned to the manager.
- getHardwareAcceleration() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the hardware acceleration currently enabled for the game engine.
- getIcon() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the displayed icon of the
Display
. - getID() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the
String
ID of theDrawable
. - getInternalResolution() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the internal resolution of the
Display
. - getJFrame() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the
JFrame
of theDisplay
. - getKeyboardActionListeners() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Gets the list of keyboard action listeners for this
InputManager
. - getLastKeyPressed() - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Gets the last key character pressed.
- getLastLoopTime() - Method in class io.github.lucasstarsz.fastj.engine.internals.Timer
-
Gets the last loop time.
- getList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Gets the specified list of behavior listeners aliased to the specified
Scene
. - getLogicManager() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the logic manager associated with the game engine.
- getMonitor(int) - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the specified monitor.
- getMonitorCount() - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the amount of monitors the user has.
- getMonitorDimensions(int) - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the dimensions of the specified monitor.
- getMonitorRefreshRate(int) - Static method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the refresh rate of the specified monitor.
- getMouseActionListeners() - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Gets the list of mouse action listeners for this
InputManager
. - getMouseLocation() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the location of the mouse on the
Display
. - getObjects() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
-
Gets the array of
Polygon2D
s for this Model2D. - getOriginalPoints() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Gets the original points that were set for this polygon.
- getPaint() - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Gets the
Paint
object for the button. - getPoints() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Gets the
Pointf
array associated with the current state of the polygon. - getRenderPath() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Gets the rendered
Path2D.Float
for this polygon. - getResolutionScale() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the scaling of the
Display
resolution, as an expression ofviewer resolution / internal resolution
. - getRotation() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the rotation of the
GameObject
. - getRotation() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- getRotation() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- getRotation() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- getRotation() - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Gets the
Camera
's current rotation. - getRotationWithin360() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the rotation, normalized to be within 360 degrees.
- getScale() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the scale of the
GameObject
. - getScale() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- getScale() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- getScale() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- getScene(String) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Gets the scene with the specified scene name, if it exists.
- getSceneName() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets the name of the scene.
- getScenes() - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Gets the list of all scenes in the logic manager.
- getScrollDirection() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the last mouse wheel scroll direction.
- getTaggableEntities() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets the taggable entities assigned to the scene.
- getTags() - Method in class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
-
Gets the list of tags.
- getTargetFPS() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the target FPS for this instance of the game engine.
- getTargetUPS() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the target UPS for this instance of the game engine.
- getText() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Gets the displayed text of this
Text2D
. - getText() - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Gets the text for the button.
- getTime() - Method in class io.github.lucasstarsz.fastj.engine.internals.Timer
-
Gets the current time in nanoseconds.
- getTitle() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the title of the
Display
. - getTransformation() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the entire transformation of the
GameObject
. - getTransformation() - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Gets the transformation of this
Camera
object as anAffineTransform
. - getTranslation() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Gets the translation of the
GameObject
. - getTranslation() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- getTranslation() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- getTranslation() - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- getTranslation() - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Gets the
Camera
's current translation. - getUUID() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the raw
UUID
of theDrawable
. - getViewerResolution() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the viewer resolution of the
Display
. - greater - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "greater" key.
H
- h - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "h" key.
- halfWidth - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "half width" key.
- hashCode() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- hashCode() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- hashCode() - Method in class io.github.lucasstarsz.fastj.math.Point
- hashCode() - Method in class io.github.lucasstarsz.fastj.math.Pointf
- hasTag(String) - Method in class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
-
Determines whether this object has the specified tag.
- help - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "help" key.
- HIGHEST - io.github.lucasstarsz.fastj.engine.FPSValue
-
Enum constant defining the need to get information on the absolute highest frame count per second.
- hiragana - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "hiragana" key.
- home - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "home" key.
- HWAccel - Enum in io.github.lucasstarsz.fastj.engine
-
Enumerator defining what types of hardware acceleration are supported.
I
- i - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "i" key.
- illegalAction(Class<?>) - Static method in enum io.github.lucasstarsz.fastj.engine.CrashMessages
-
Gets a string that depicts an error caused by an illegal action in the method of the specified class.
- init() - Method in class io.github.lucasstarsz.fastj.engine.internals.Timer
-
Initializes the Timer.
- init() - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Initializes the keyboard.
- init() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Initializes the
Display
. - init(GameObject) - Method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Initializes the assigned
GameObject
. - init(String, LogicManager) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Initializer for the game engine.
- init(String, LogicManager, int, int, Point, Point, HWAccel) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Initializer for the game engine.
- initBehaviorListeners() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Initializes all behavior listeners in the scene.
- initBehaviorListeners(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Initializes the behavior listeners aliased to the specified
Scene
. - initBehaviors() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Calls the
init
method of theGameObject
's behaviors. - inputManager - Variable in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Input manager instance for the scene -- it controls the scene's received events.
- InputManager - Class in io.github.lucasstarsz.fastj.systems.input
-
Class to manage user input.
- InputManager() - Constructor for class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Constructs an
InputManager
, initializing its internal variables. - inputMethodOnOff - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "input method on off" key.
- insert - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "insert" key.
- interactsWith(Drawable, MouseAction) - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Determines whether the specified
Drawable
intersects the mouse, if the mouse is currently performing the specifiedMouseAction
. - intersects(Path2D) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Determines whether a specified Path2D object intersects with this
Point
object. - intersects(Path2D) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Determines whether a specified Path2D object intersects with this
Pointf
object. - intersects(Rectangle2D) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Determines whether a specified Rectangle2D object intersects with this
Point
object. - intersects(Rectangle2D) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Determines whether a specified Rectangle2D object intersects with this
Pointf
object. - invertedExclamationMark - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "¡" key.
- io.github.lucasstarsz.fastj.engine - package io.github.lucasstarsz.fastj.engine
- io.github.lucasstarsz.fastj.engine.internals - package io.github.lucasstarsz.fastj.engine.internals
- io.github.lucasstarsz.fastj.graphics - package io.github.lucasstarsz.fastj.graphics
- io.github.lucasstarsz.fastj.graphics.shapes - package io.github.lucasstarsz.fastj.graphics.shapes
- io.github.lucasstarsz.fastj.graphics.text - package io.github.lucasstarsz.fastj.graphics.text
- io.github.lucasstarsz.fastj.io.keyboard - package io.github.lucasstarsz.fastj.io.keyboard
- io.github.lucasstarsz.fastj.io.mouse - package io.github.lucasstarsz.fastj.io.mouse
- io.github.lucasstarsz.fastj.math - package io.github.lucasstarsz.fastj.math
- io.github.lucasstarsz.fastj.render - package io.github.lucasstarsz.fastj.render
- io.github.lucasstarsz.fastj.systems.behaviors - package io.github.lucasstarsz.fastj.systems.behaviors
- io.github.lucasstarsz.fastj.systems.game - package io.github.lucasstarsz.fastj.systems.game
- io.github.lucasstarsz.fastj.systems.input - package io.github.lucasstarsz.fastj.systems.input
- io.github.lucasstarsz.fastj.systems.tags - package io.github.lucasstarsz.fastj.systems.tags
- io.github.lucasstarsz.fastj.ui - package io.github.lucasstarsz.fastj.ui
- io.github.lucasstarsz.fastj.ui.elements - package io.github.lucasstarsz.fastj.ui.elements
- isClosed() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is closed. - isFilled() - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Gets the fill boolean for this polygon.
- isFullscreen() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is in full-screen mode. - isInitialized() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Gets the value that specifies whether the scene is initialized.
- isKeyDown(int) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key is currently pressed.
- isKeyDown(int, Keyboard.KeyLocation) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key (at the specified key location) is currently pressed.
- isKeyRecentlyPressed(int) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key was recently pressed.
- isKeyRecentlyPressed(int, Keyboard.KeyLocation) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key (at the specified key location) was recently pressed.
- isKeyRecentlyReleased(int) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key was recently released.
- isKeyRecentlyReleased(int, Keyboard.KeyLocation) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Checks if the specified key (at the specified key location) was recently released.
- isMouseButtonPressed(int) - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value that determines whether the specified mouse button is currently pressed.
- isMouseButtonPressed(MouseButtons) - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value that determines whether the specified mouse button is currently pressed.
- isOnScreen() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Gets the value that determines whether the mouse is currently on the
Display
window. - isOnScreen(Drawable, Camera) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Drawable
is visible on screen. - isReady() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is ready to be rendered to. - isRunning() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Gets the value that defines whether the engine is running.
- isShowingFPSInTitle() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is showing the FPS in the title bar. - isShowingTitleBar() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is showing the title bar. - isSwitchingScenes() - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Gets the boolean that specifies whether the logic manager is currently switching scenes.
- isSwitchingScreenState() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is switching its screen state. - isWindowedFullscreen() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Gets the value that determines whether the
Display
is in windowed full-screen mode.
J
- j - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "j" key.
- japaneseHiragana - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "japanese hiragana" key.
- japaneseKatakana - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "japanese katakana" key.
- japaneseRoman - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "japanese roman" key.
K
- k - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "k" key.
- kana - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kana" key.
- kanaLock - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kana lock" key.
- kanji - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kanji" key.
- katakana - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "katakana" key.
- Keyboard - Class in io.github.lucasstarsz.fastj.io.keyboard
-
Class that stores key input information from the
Display
. - Keyboard() - Constructor for class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
- Keyboard.KeyLocation - Enum in io.github.lucasstarsz.fastj.io.keyboard
-
Enum that defines the location of a key.
- KeyboardActionListener - Interface in io.github.lucasstarsz.fastj.io.keyboard
-
A keyboard action listener.
- keyPressed(KeyEvent) - Method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
- keyReleased(KeyEvent) - Method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
- Keys - Class in io.github.lucasstarsz.fastj.io.keyboard
-
Based on the
KeyEvent
class, theKeys
class defines better-looking names for keyboard input keycodes. - Keys() - Constructor for class io.github.lucasstarsz.fastj.io.keyboard.Keys
- keyTyped(KeyEvent) - Method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
- kpDown - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kp down" key.
- kpLeft - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kp left" key.
- kpRight - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kp right" key.
- kpUp - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "kp up" key.
L
- l - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "l" key.
- left - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "left" key.
- LEFT - io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
A key appearing twice on the keyboard -- this specifies the version on the left.
- LEFT - io.github.lucasstarsz.fastj.io.mouse.MouseButtons
-
Enum value for the left mouse button.
- leftBrace - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "{" key.
- leftParenthesis - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "(" key.
- lengthOfPath(Path2D) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Gets the amount of points in the specified
Path2D
. - less - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "less" key.
- load(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Loads the scene into an initialized state.
- load2DModel(String) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Gets a
Polygon2D
array, loaded from a.psdf
file. - loadCurrentScene() - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Loads the current scene, if it's not already initialized.
- location - Variable in enum io.github.lucasstarsz.fastj.graphics.Boundary
-
The array index corresponding to the enum constant.
- log(T) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Logs the specified message, using
System.out.println
. - LogicManager - Class in io.github.lucasstarsz.fastj.systems.game
-
The manager which allows for control over the scenes in a game.
- LogicManager() - Constructor for class io.github.lucasstarsz.fastj.systems.game.LogicManager
- LOWEST - io.github.lucasstarsz.fastj.engine.FPSValue
-
Enum constant defining the need to get information on the absolute lowest frame count per second.
M
- m - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "m" key.
- magnitude(double, double) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Finds the magnitude of the specified
x
andy
values. - magnitude(Point) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Finds the magnitude of the
Point
based on itsx
andy
coordinates. - magnitude(Pointf) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Finds the magnitude of the
Pointf
based on itsx
andy
coordinates. - Maths - Class in io.github.lucasstarsz.fastj.math
-
Small utility class that provides a few methods for processing numbers.
- Maths() - Constructor for class io.github.lucasstarsz.fastj.math.Maths
- meta - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "meta" key.
- MIDDLE - io.github.lucasstarsz.fastj.io.mouse.MouseButtons
-
Enum value for the middle mouse button.
- minus - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "minus" key.
- modechange - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "modechange" key.
- Model2D - Class in io.github.lucasstarsz.fastj.graphics.shapes
-
Drawable
subclass for grouping an array ofPolygon2D
s under a single object. - Model2D(Polygon2D[], boolean) - Constructor for class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
-
Model2D constructor.
- Model2D(Polygon2D[], Pointf, float, Pointf, boolean) - Constructor for class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
-
Model2D constructor.
- modifyPoints(Pointf[], boolean, boolean, boolean) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Replaces the current point array with the parameter point array.
- modifyRenderSettings(RenderingHints.Key, Object) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Changes the rendering settings for the specified key.
- Mouse - Class in io.github.lucasstarsz.fastj.io.mouse
-
Mouse class that takes mouse input from the
Display
, and uses it to store variables about the mouse's current state. - Mouse() - Constructor for class io.github.lucasstarsz.fastj.io.mouse.Mouse
- MouseAction - Enum in io.github.lucasstarsz.fastj.io.mouse
-
Enum defining the different types of mouse actions.
- MouseActionListener - Interface in io.github.lucasstarsz.fastj.io.mouse
-
A mouse action listener.
- MouseButtons - Enum in io.github.lucasstarsz.fastj.io.mouse
-
Convenience enum defining common mouse button values.
- mouseClicked(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseDragged(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseEntered(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseExited(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseMoved(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mousePressed(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseReleased(MouseEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- mouseWheelMoved(MouseWheelEvent) - Method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
- MOVE - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where the mouse was moved.
- multiply - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "multiply" key.
- multiply(float) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Multiplies the values of this
Pointf
by the specified float value, and returns a newPointf
with the modified values. - multiply(int) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Multiplies the values of this
Point
by the specified integer value, and returns a newPoint
with the modified values. - multiply(Point) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Multiplies the values of this
Point
by the specifiedPoint
, and returns a newPoint
with the modified values. - multiply(Pointf) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Multiplies the values of this
Pointf
by the specifiedPointf
, and returns a newPointf
with the modified values. - multiply(Pointf, float) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to multiply a
Pointf
object by a float value, and return a newPointf
. - multiply(Pointf, Pointf) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to multiply two
Pointf
objects (from the parameters specified) together, and return a newPointf
. - multiply(Point, int) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to multiply a
Point
object by an integer value, and return a newPoint
. - multiply(Point, Point) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to multiply two
Point
objects (from the parameters specified) together, and return a newPoint
.
N
- n - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "n" key.
- nine - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "9" key.
- nonconvert - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "nonconvert" key.
- numberSign - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "# (aka hashtag, pound symbol)" key.
- numLock - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "num lock" key.
- NUMPAD - io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
A key on the "numpad" -- a collection of keys often to the right of the main keyboard.
- numpad0 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 0" key.
- numpad1 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 1" key.
- numpad2 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 2" key.
- numpad3 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 3" key.
- numpad4 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 4" key.
- numpad5 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 5" key.
- numpad6 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 6" key.
- numpad7 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 7" key.
- numpad8 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 8" key.
- numpad9 - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "numpad 9" key.
O
- o - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "o" key.
- one - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "1" key.
- ONE_PERCENT_LOW - io.github.lucasstarsz.fastj.engine.FPSValue
-
Enum constant defining the need to get information on the 1% low for the FPS.
- onKeyDown() - Method in interface io.github.lucasstarsz.fastj.io.keyboard.KeyboardActionListener
-
Event called when a key is currently pressed, once per game update.
- onKeyRecentlyPressed(KeyEvent) - Method in interface io.github.lucasstarsz.fastj.io.keyboard.KeyboardActionListener
-
Event called when a key was recently pressed.
- onKeyReleased(KeyEvent) - Method in interface io.github.lucasstarsz.fastj.io.keyboard.KeyboardActionListener
-
Event called when a key was recently released.
- onKeyTyped(KeyEvent) - Method in interface io.github.lucasstarsz.fastj.io.keyboard.KeyboardActionListener
-
Event called when a key was recently typed.
- onMouseClicked(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when a mouse button is clicked.
- onMouseDragged(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when the mouse is dragged.
- onMouseEntersScreen(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when the mouse enters the application screen.
- onMouseExitsScreen(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when the mouse exits the application screen.
- onMouseMoved(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when the mouse is moved.
- onMousePressed(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when a mouse button is pressed.
- onMousePressed(MouseEvent) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Fires the ui element's
onAction
event(s), if its condition is met. - onMouseReleased(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when a mouse button is released.
- onMouseWheelScrolled(MouseEvent) - Method in interface io.github.lucasstarsz.fastj.io.mouse.MouseActionListener
-
Event called when the mouse wheel is scrolled.
- open() - Method in class io.github.lucasstarsz.fastj.render.Display
-
Displays the
Display
. - openBracket - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "open bracket" key.
- OPENGL - io.github.lucasstarsz.fastj.engine.HWAccel
-
Enables OpenGL hardware acceleration.
- origin - Static variable in class io.github.lucasstarsz.fastj.math.Point
-
Point
representing the origin as anint
:(0, 0)
. - origin - Static variable in class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
representing the origin as afloat
:(0f, 0f)
.
P
- p - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "p" key.
- pageDown - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "page down" key.
- pageUp - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "page up" key.
- paste - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "paste" key.
- pathEquals(Path2D, Path2D) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Checks for equality in length and point values between two
Path2D
objects. - pause - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "pause" key.
- period - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "period" key.
- plus - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "+" key.
- Point - Class in io.github.lucasstarsz.fastj.math
-
Class that defines a point in 2D space, using integers.
- Point() - Constructor for class io.github.lucasstarsz.fastj.math.Point
-
Point
constructor, where its x and y values are set to zero. - Point(int) - Constructor for class io.github.lucasstarsz.fastj.math.Point
-
Point
constructor, where the values for the newly createdPoint
are set to the integer parameter's values. - Point(int, int) - Constructor for class io.github.lucasstarsz.fastj.math.Point
-
Point
constructor, where the values for the newly createdPoint
are set to the specified x and y parameters. - Point(Point) - Constructor for class io.github.lucasstarsz.fastj.math.Point
-
Point
constructor, where the values for the newly createdPoint
are set to the parameterPoint
's values. - Pointf - Class in io.github.lucasstarsz.fastj.math
-
Class that defines a point in 2D space, using floats.
- Pointf() - Constructor for class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
constructor, where its x and y values are set to zero. - Pointf(float) - Constructor for class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
constructor, where the values for the newly createdPointf
are set to the float parameter's values. - Pointf(float, float) - Constructor for class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
constructor, where the values for the newly createdPointf
are set to the specified x and y parameters. - Pointf(Point) - Constructor for class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
constructor, where the values for the newly createdPointf
are set to the parameterPoint
's values. - Pointf(Pointf) - Constructor for class io.github.lucasstarsz.fastj.math.Pointf
-
Pointf
constructor, where the values for the newly createdPointf
are set to the parameterPointf
's values. - pointsOfPath(Path2D.Float) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Gets a
Pointf
array that represents the points of thePath2D.Float
parameter. - Polygon2D - Class in io.github.lucasstarsz.fastj.graphics.shapes
-
Drawable
subclass for drawing a polygon. - Polygon2D(Pointf[]) - Constructor for class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Polygon2D
constructor that takes in a set of points. - Polygon2D(Pointf[], Pointf, float, Pointf, Color, boolean, boolean) - Constructor for class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Polygon2D
constructor that takes in a set of points, a color, fill variable, a show variable, and the translation, rotation, and scale of the polygon. - Polygon2D(Pointf[], Color, boolean, boolean) - Constructor for class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Polygon2D
constructor that takes in a set of points, a color, a fill variable, and a show variable. - PRESS - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where a mouse button was pressed.
- previousCandidate - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "previous candidate" key.
- printscreen - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "printscreen" key.
- processEvent(Scene, KeyEvent) - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Processes the specified key event for the specified scene, based on its event type.
- processEvent(Scene, MouseEvent) - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Processes the specified mouse event for the specified scene, based on its event type.
- processEvents(Scene) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Processes all events in the event list, then clears them from the list.
- props - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "props" key.
Q
- q - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "q" key.
- quote - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "quote" key.
- quotedbl - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "quotedbl" key.
R
- r - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "r" key.
- random(double, double) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Generates a random number within the specified min and max limits.
- randomAtEdge(double, double) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Generates a random number within the specified range, then snaps it to the edge it is closest to.
- randomColor() - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Generates a random
Color
, while leaving the alpha to its default value (255). - randomColorWithAlpha() - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Generates a random
Color
, including the alpha level of the color. - receivedInputEvent(InputEvent) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Stores the specified input in the event list to be processed later.
- refreshGameObjectList() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes any null values from the list of game objects for the manager.
- refreshGUIObjectList() - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes any null values from the list of gui objects for the manager.
- RELEASE - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where a mouse button, originally pressed, was released.
- removeBehavior(Behavior, Scene) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Removes the specified
Behavior
from theGameObject
's list ofBehavior
s. - removeBehaviorListener(GameObject) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Removes the specified behavior listener from the scene.
- removeGameObject(GameObject) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes the specified game object.
- removeGameObject(String) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes the game object with the specified ID.
- removeGUIObject(UIElement) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes the specified gui object.
- removeGUIObject(String) - Method in class io.github.lucasstarsz.fastj.systems.game.DrawableManager
-
Removes the gui object with the specified ID.
- removeKeyboardActionListener(KeyboardActionListener) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Removes the specified
KeyboardActionListener
. - removeListener(Scene, GameObject) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Removes the specified behavior from the list aliased to the specified
Scene
. - removeListenerList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Removes the list aliased to the specified
Scene
, and all elements inside. - removeMouseActionListener(MouseActionListener) - Method in class io.github.lucasstarsz.fastj.systems.input.InputManager
-
Removes the specified
MouseActionListener
. - removeScene(Scene) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Removes the specified scene from the logic manager.
- removeScene(String) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Removes a scene from the logic manager, based on the specified scene name.
- removeTag(String, Scene) - Method in class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
-
Removes the specified tag from the object's list of tags.
- removeTaggableEntity(Drawable) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Removes the specified taggable entity.
- removeTaggableEntity(Scene, Drawable) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Removes the specified taggable entity from the list of taggable entities for the specified scene.
- removeTaggableEntityList(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Removes the list of taggable entities aliased to the specified
Scene
. - render(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Renders the current scene to the
Display
. - render(Graphics2D) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Renders the
GameObject
to the specifiedGraphics2D
parameter. - render(Graphics2D) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- render(Graphics2D) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- render(Graphics2D) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- render(Map<String, GameObject>, Map<String, UIElement>, Camera) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Renders the specified game objects and GUI objects, within the viewing area of the Camera.
- RENDER_ERROR - io.github.lucasstarsz.fastj.engine.CrashMessages
-
"The game crashed, due to a rendering error."
- renderAsGUIObject(Graphics2D, Camera) - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
- renderAsGUIObject(Graphics2D, Camera) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Renders the
UIElement
to the parameterGraphics2D
object, aligning with the window by rendering at the inverse translation of the specifiedCamera
. - reset() - Static method in class io.github.lucasstarsz.fastj.io.keyboard.Keyboard
-
Clears all key input from the keyboard.
- reset() - Static method in class io.github.lucasstarsz.fastj.io.mouse.Mouse
-
Resets the
Mouse
. - reset() - Method in class io.github.lucasstarsz.fastj.math.Point
-
Resets this
Point
's values to zero. - reset() - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Resets this
Pointf
's x and y values to zero. - reset() - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Resets the camera's transformation.
- reset() - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Resets the behavior manager entirely.
- reset() - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Resets the logic manager.
- reset() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Resets the scene's state entirely.
- reset() - Static method in class io.github.lucasstarsz.fastj.systems.tags.TagManager
-
Wipes the
TagManager
of all aliases and tags. - resizeDisplay(Point) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Resizes the
Display
to the specified size. - right - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "right" key.
- RIGHT - io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
A key appearing twice on the keyboard -- this specifies the version on the right.
- RIGHT - io.github.lucasstarsz.fastj.io.mouse.MouseButtons
-
Enum value for the right mouse button.
- rightBrace - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "}" key.
- rightParenthesis - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the ")" key.
- romanCharacters - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "roman characters" key.
- rotate(float) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Rotates the
GameObject
in the direction of the specified rotation, about its center. - rotate(float) - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Applies a modifier to the
Camera
's rotation. - rotate(float, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Rotates the
GameObject
in the direction of the specified rotation, about the specified centerpoint. - rotate(float, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- rotate(float, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- rotate(float, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- run() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Runs the game.
- runningCheck() - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Checks if the engine is currently running.
S
- s - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "s" key.
- scale(float) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Scales the
GameObject
in by the amount specified in the specified scale, about its center. - scale(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Scales the
GameObject
in by the amount specified in the specified scale, about its center. - scale(Pointf, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Scales the
GameObject
in by the amount specified in the specified scale, from the specified centerpoint. - scale(Pointf, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- scale(Pointf, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- scale(Pointf, Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- Scene - Class in io.github.lucasstarsz.fastj.systems.game
-
Class containing the logic for a specific section, or scene, of a game.
- Scene(String) - Constructor for class io.github.lucasstarsz.fastj.systems.game.Scene
-
Constructs a scene with the specified name.
- SCENE_ERROR - io.github.lucasstarsz.fastj.engine.CrashMessages
-
"The game crashed, due to a scene error."
- scrollLock - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "scroll lock" key.
- semicolon - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the ";" key.
- separater - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "separater" key.
- separator - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "separator" key.
- set(float, float) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Sets the x and y values of this
Pointf
object to the values specified. - set(int, int) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Sets the x and y values of this
Point
object to the values specified. - setBackgroundColor(Color) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the display's background color.
- setBackgroundToCameraPos(Camera) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Changes the background to the location of the camera.
- setBounds(Pointf[]) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Sets the boundaries of the
Drawable
to the specifiedPointf
array. - setCollisionPath(Shape) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Sets the collision path to the specified parameter.
- setColor(Color) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Sets the color for the polygon.
- setColor(Color) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Sets the
Color
for thisText2D
. - setCurrentScene(Scene) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Sets the current scene to the scene specified.
- setCurrentScene(String) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Sets the current scene to the scene with the name specified.
- setDisplayedTitle(String) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the title that the end user sees to the specified title.
- setFilled(boolean) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
-
Sets the fill boolean for the object.
- setFont(Font) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Sets the
Font
for thisText2D
. - setFont(Font) - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Sets the
Font
for the button. - setFullscreen(boolean) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the
Display
's full-screen state to the specified parameter. - setIcon(BufferedImage) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the display's icon.
- setInitialized(boolean) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Sets whether the scene is initialized.
- setInternalResolution(Point) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the
Display
's game resolution. - setOnAction(Consumer<MouseEvent>) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Sets the UIElement's
onAction
event to the specified action. - setOnActionCondition(EventCondition) - Method in class io.github.lucasstarsz.fastj.ui.UIElement
-
Sets the "onAction" condition, the determinant of whether the ui elements'
onAction
events will be fired. - setPaint(Paint) - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Sets the
Paint
object for the button. - setRotation(float) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Sets the
GameObject
's rotation to the specified value. - setScale(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Sets the
GameObject
's scale to the specified value. - setShouldRender(boolean) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Sets whether the
Drawable
should be rendered. - setTargetFPS(int) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Sets the game's target FPS (Frames rendered per second).
- setTargetUPS(int) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Sets the game's UPS (Updates per second).
- setText(String) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Sets the text for this
Text2D
. - setText(String) - Method in class io.github.lucasstarsz.fastj.ui.elements.Button
-
Sets the text for the button.
- setTitle(String) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the true title of the
Display
. - setTranslation(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Sets the
GameObject
's translation to the specified value. - setup(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Set up the game scenes, the display, and everything in between.
- setViewerResolution(Point) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the
Display
's viewed resolution. - setWindowedFullscreen(boolean) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets the display's windowed full-screen state to the specified parameter.
- seven - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "7" key.
- shift - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "shift" key.
- shouldRender() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Gets the value that defines whether the
Drawable
should be rendered. - showFPSInTitle(boolean) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Enables or disables displaying the FPS in the title bar of the display.
- showTitleBar(boolean) - Method in class io.github.lucasstarsz.fastj.render.Display
-
Sets whether the title bar of the
Display
should be shown. - simpleRotation(float) - Static method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Gets an instance of
Behavior
that, when assigned to aGameObject
, rotates it by the specified rotation every update call. - simpleScale(Pointf) - Static method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Gets an instance of
Behavior
that, when assigned to aGameObject
, scales it by the specified scale every update call. - simpleTranslation(Pointf) - Static method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Gets an instance of
Behavior
that, when assigned to aGameObject
, translates it by the specified translation every update call. - six - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "6" key.
- slash - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "slash" key.
- snap(double, double, double) - Static method in class io.github.lucasstarsz.fastj.math.Maths
-
Snaps the specified number to the edge it is closest to.
- space - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "space" key.
- STANDARD - io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
Any key not in the other groups -- the most common type of key.
- start() - Static method in class io.github.lucasstarsz.fastj.engine.internals.ThreadFixer
-
Starts a daemon thread, if one has not already been started.
- stop - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "stop" key.
- subtract - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "subtract" key.
- subtract(float) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Subtracts the values of this
Pointf
by the specified float value, and returns a newPointf
with the modified values. - subtract(int) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Subtracts the values of this
Point
by the specified integer value, and returns a newPoint
with the modified values. - subtract(Point) - Method in class io.github.lucasstarsz.fastj.math.Point
-
Subtracts the values of this
Point
by the specifiedPoint
, and returns a newPoint
with the modified values. - subtract(Pointf) - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Subtracts the values of this
Pointf
by the specifiedPointf
, and returns a newPointf
with the modified values. - subtract(Pointf, float) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to subtract a
Pointf
object by a float value, and return a newPointf
. - subtract(Pointf, Pointf) - Static method in class io.github.lucasstarsz.fastj.math.Pointf
-
Static method used to subtract two Points (from the parameters specified) together, and return a new
Pointf
object. - subtract(Point, int) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to subtract a
Point
object by an integer value, and return a newPoint
. - subtract(Point, Point) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Static method used to subtract two Points (from the parameters specified) together, and return a new
Point
object. - switchScenes(String) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Switches to the scene specified, loading that scene if necessary.
T
- t - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "t" key.
- tab - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "tab" key.
- TaggableEntity - Class in io.github.lucasstarsz.fastj.systems.tags
-
Abstract class that allows you to use tags.
- TaggableEntity() - Constructor for class io.github.lucasstarsz.fastj.systems.tags.TaggableEntity
- TagManager - Class in io.github.lucasstarsz.fastj.systems.tags
-
Class to manage tags and taggable entities for all game scenes.
- TagManager() - Constructor for class io.github.lucasstarsz.fastj.systems.tags.TagManager
- Text2D - Class in io.github.lucasstarsz.fastj.graphics.text
-
Drawable
subclass for drawing text. - Text2D(String, Pointf) - Constructor for class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Text2D
Constructor. - Text2D(String, Pointf, Color, Font, boolean) - Constructor for class io.github.lucasstarsz.fastj.graphics.text.Text2D
-
Text2D
Constructor. - theGameCrashed(String) - Static method in enum io.github.lucasstarsz.fastj.engine.CrashMessages
-
Gets a string with
"The game crashed, due to "
, and adds the specified error message to the end. - ThreadFixer - Class in io.github.lucasstarsz.fastj.engine.internals
-
Class to create a daemon thread that fixes inaccurate sleep time on Windows computers.
- ThreadFixer() - Constructor for class io.github.lucasstarsz.fastj.engine.internals.ThreadFixer
- three - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "3" key.
- Timer - Class in io.github.lucasstarsz.fastj.engine.internals
-
Timer that accurately specifies time.
- Timer() - Constructor for class io.github.lucasstarsz.fastj.engine.internals.Timer
- TOP_LEFT - io.github.lucasstarsz.fastj.graphics.Boundary
-
Top left boundary -- array index 0.
- TOP_RIGHT - io.github.lucasstarsz.fastj.graphics.Boundary
-
Top right boundary -- array index 1.
- toPointf(Point) - Static method in class io.github.lucasstarsz.fastj.math.Point
-
Converts the specified
Point
to aPointf
object. - toString() - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
- toString() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
- toString() - Method in class io.github.lucasstarsz.fastj.math.Point
-
Returns this
Point
's coordinates as a String. - toString() - Method in class io.github.lucasstarsz.fastj.math.Pointf
-
Returns this
Pointf
's coordinates as a String. - translate(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Translates the
GameObject
's position by the specified translation. - translate(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Model2D
- translate(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.shapes.Polygon2D
- translate(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.text.Text2D
- translate(Pointf) - Method in class io.github.lucasstarsz.fastj.render.Camera
-
Applies a modifier to the
Camera
's translation. - translateBounds(Pointf) - Method in class io.github.lucasstarsz.fastj.graphics.Drawable
-
Translates the boundaries of the
Drawable
by the specifiedPointf
. - two - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "2" key.
U
- u - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "u" key.
- UIElement - Class in io.github.lucasstarsz.fastj.ui
-
A drawable to be used as UI.
- UIElement(Scene) - Constructor for class io.github.lucasstarsz.fastj.ui.UIElement
-
Instantiates the UIElement's internals, and adds it to the origin scene as a ui element/mouse listener.
- undefined - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "undefined" key.
- underscore - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "_" key.
- undo - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "undo" key.
- UNIMPLEMENTED_METHOD_ERROR - io.github.lucasstarsz.fastj.engine.CrashMessages
-
"The game crashed, due to the call of a method not yet implemented.
- unload(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Unloads the scene into an uninitialized state.
- up - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "up" key.
- update(GameObject) - Method in interface io.github.lucasstarsz.fastj.systems.behaviors.Behavior
-
Updates the assigned
GameObject
. - update(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.LogicManager
-
Updates the current scene, its behaviors, and listeners.
- update(Display) - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Updates the scene's state.
- updateBehaviorListeners() - Method in class io.github.lucasstarsz.fastj.systems.game.Scene
-
Updates all behavior listeners in the scene.
- updateBehaviorListeners(Scene) - Static method in class io.github.lucasstarsz.fastj.systems.behaviors.BehaviorManager
-
Updates the behavior listeners aliased to the specified
Scene
. - updateBehaviors() - Method in class io.github.lucasstarsz.fastj.graphics.GameObject
-
Calls the
update
method of theGameObject
's behaviors.
V
- v - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "v" key.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.engine.CrashMessages
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.engine.FPSValue
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.engine.HWAccel
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.graphics.Boundary
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum io.github.lucasstarsz.fastj.io.mouse.MouseButtons
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.github.lucasstarsz.fastj.engine.CrashMessages
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.engine.FPSValue
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.engine.HWAccel
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.graphics.Boundary
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.io.keyboard.Keyboard.KeyLocation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum io.github.lucasstarsz.fastj.io.mouse.MouseButtons
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- w - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "w" key.
- warning(T) - Static method in class io.github.lucasstarsz.fastj.engine.FastJEngine
-
Logs the specified warning message, using
System.err.println
. - WHEEL_SCROLL - io.github.lucasstarsz.fastj.io.mouse.MouseAction
-
Mouse action where the scroll wheel was scrolled.
- windows - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "windows" key.
- writeToPSDF(String, Model2D) - Static method in class io.github.lucasstarsz.fastj.graphics.DrawUtil
-
Writes a
.psdf
file containing the current state of thePolygon2D
s that make up the specifiedModel2D
.
X
- x - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "x" key.
- x - Variable in class io.github.lucasstarsz.fastj.math.Point
-
The x value of the
Point
. - x - Variable in class io.github.lucasstarsz.fastj.math.Pointf
-
The x value of the
Pointf
.
Y
- y - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "y" key.
- y - Variable in class io.github.lucasstarsz.fastj.math.Point
-
The y value of the
Point
. - y - Variable in class io.github.lucasstarsz.fastj.math.Pointf
-
The y value of the
Pointf
.
Z
- z - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "z" key.
- zero - Static variable in class io.github.lucasstarsz.fastj.io.keyboard.Keys
-
Keycode constant for the "0" key.
All Classes All Packages