Uses of Class
rekit.primitives.geometry.Vec
Packages that use Vec
Package
Description
-
Uses of Vec in rekit.core
Methods in rekit.core with parameters of type VecModifier and TypeMethodDescriptionfinal void
GameGrid.drawCircle
(Vec pos, Vec size, RGBAColor color) Draw a circle.
invokesGameGrid.drawCircle(Vec, Vec, RGBAColor, boolean, boolean)
and set ingame and usefilter totrue
abstract void
GameGrid.drawCircle
(Vec pos, Vec size, RGBAColor color, boolean ingame, boolean usefilter) Draw a circle.final void
Draw an image.void
Draw an image.abstract void
GameGrid.drawImage
(Vec pos, Vec size, String imagePath, boolean ingame, boolean usefilter, boolean mirrorX, boolean mirrorY) Draw an image.final void
Draw a line between two given points with line width 1px in black.final void
Draw a line between two given points with a given lineWidth in black.abstract void
Draw a line between two given points with a given lineWidth and a color.final void
abstract void
Draw a path.final void
GameGrid.drawRectangle
(Vec pos, Vec size, RGBAColor color) Draw a rectangle.
invokesGameGrid.drawRectangle(Vec, Vec, RGBAColor, boolean, boolean)
and set ingame and usefilter totrue
abstract void
GameGrid.drawRectangle
(Vec pos, Vec size, RGBAColor color, boolean ingame, boolean usefilter) Draw a rectangle.final void
GameGrid.drawRoundRectangle
(Vec pos, Vec size, RGBAColor color, float arcWidth, float arcHeight) Draw a rectangle with round corners.
invokesGameGrid.drawRoundRectangle(Vec, Vec, RGBAColor, float, float, boolean, boolean)
and set ingame and usefilter totrue
abstract void
GameGrid.drawRoundRectangle
(Vec pos, Vec size, RGBAColor color, float arcWidth, float arcHeight, boolean ingame, boolean usefilter) Draw a rectangle with round corners.abstract void
GameGrid.drawText
(Vec pos, String text, TextOptions options, boolean ingame) Draw a text element.Method parameters in rekit.core with type arguments of type VecModifier and TypeMethodDescriptionfinal void
abstract void
Draw a path. -
Uses of Vec in rekit.logic.gameelements
Methods in rekit.logic.gameelements that return VecModifier and TypeMethodDescriptionfinal Vec
GameElement.getPos()
Getter for theGameElements
absolute position.final Vec
GameElement.getSize()
Getter for theGameElements
size.final Vec
GameElement.getVel()
Getter for theGameElements
velocity.Methods in rekit.logic.gameelements with parameters of type VecModifier and TypeMethodDescriptionStub Factory method that everyGameElement
must implement in order to being able to be instantiated dynamically by the level creation.final void
Setter for theGameElements
absolute position.void
Set the size of the GameElement.final void
Setter for theGameElements
velocity.Constructors in rekit.logic.gameelements with parameters of type VecModifierConstructorDescriptionprotected
GameElement
(Vec startPos, Vec vel, Vec size, Team team) Standard constructor that should be used in every extending class. -
Uses of Vec in rekit.logic.gameelements.entities
Constructors in rekit.logic.gameelements.entities with parameters of type VecModifierConstructorDescriptionprotected
Constructor that initializes attributes and takes a start position.Create a player by start position.protected
StateEntity
(Vec startPos, Vec vel, Vec size, Team team) Constructor that initializes attributes and takes a start position. -
Uses of Vec in rekit.logic.gameelements.entities.pickups
Methods in rekit.logic.gameelements.entities.pickups with parameters of type VecModifier and TypeMethodDescriptionConstructors in rekit.logic.gameelements.entities.pickups with parameters of type VecModifierConstructorDescriptionprotected
DefaultCoin
(Vec startPos) Constructor with position.Instantiate a Life by start position. -
Uses of Vec in rekit.logic.gameelements.inanimate
Methods in rekit.logic.gameelements.inanimate with parameters of type VecModifier and TypeMethodDescriptionstatic void
InanimateTrigger.createTrigger
(Vec pos, Vec size, Runnable onPerform) Utility function for easy use with lambdas.static Inanimate
InanimateBox.staticCreate
(Vec pos) Create a new InanimateBox.static Inanimate
InanimateFloor.staticCreate
(Vec pos) Static create method that will be used byInanimate
for it in order to decide betweenInanimateFloor
andInanimateBox
.Constructors in rekit.logic.gameelements.inanimate with parameters of type VecModifierConstructorDescriptionprotected
Create an inanimate.protected
Create an inanimate.protected
InanimateBox
(Vec pos, Vec size, RGBAColor color) Create an InanimateBox.InanimateDoor
(Vec pos) Create a new door.protected
InanimateFloor
(Vec pos, Vec size) Standard constructor that requires position and size of theInanimateFloor
.InanimateTrigger
(Vec pos, Vec size) Create the trigger. -
Uses of Vec in rekit.logic.gameelements.particles
Methods in rekit.logic.gameelements.particles with parameters of type VecModifier and TypeMethodDescriptionvoid
Particle.setProperties
(Polygon polygon, Vec pos, long lifeTime, Progress scale, Progress speed, Progress rotation, Progress angle, Progress colorR, Progress colorG, Progress colorB, Progress colorA) Saves all ProgressDependencies required for the Particle behavior.void
Spawn particles in aIScene
at a position. -
Uses of Vec in rekit.logic.gameelements.type
Methods in rekit.logic.gameelements.type that return VecModifier and TypeMethodDescriptionBoss.getStartPos()
Get initial position of theBoss
relative to theBossStructures
top left corner.Methods in rekit.logic.gameelements.type with parameters of type VecModifier and TypeMethodDescriptionabstract Boss
abstract Coin
abstract DynamicInanimate
abstract Enemy
abstract Pickup
Constructors in rekit.logic.gameelements.type with parameters of type VecModifierConstructorDescriptionprotected
Create a Boss.protected
Instantiate a Coin by position.protected
DynamicInanimate
(Vec pos, Vec size, RGBAColor color) Create an inanimate.protected
Create an Enemy.protected
Create a pickup. -
Uses of Vec in rekit.logic.gui
Fields in rekit.logic.gui declared as VecModifier and TypeFieldDescriptionprotected Vec
GuiElement.pos
The current position.protected Vec
GuiElement.size
The current size.Methods in rekit.logic.gui that return VecModifier and TypeMethodDescriptionfinal Vec
GuiElement.getPos()
Get the current position.final Vec
GuiElement.getSize()
Get the current size.Methods in rekit.logic.gui with parameters of type VecConstructors in rekit.logic.gui with parameters of type Vec -
Uses of Vec in rekit.logic.gui.parallax
Methods in rekit.logic.gui.parallax with parameters of type VecConstructors in rekit.logic.gui.parallax with parameters of type VecModifierConstructorDescriptionBackgroundElement
(ParallaxLayer parent, Vec pos) Create a BG-Element by parent and pos.HeapElement
(HeapLayer parent, Vec pos, Vec size, RGBAColor col) HeapElementCloud
(HeapLayer parent, Vec pos, Vec size, RGBAColor col) HeapElementMountain
(HeapLayer parent, Vec pos, Vec size, RGBAColor col) -
Uses of Vec in rekit.primitives
Methods in rekit.primitives that return VecMethods in rekit.primitives with parameters of type VecModifier and TypeMethodDescriptionTextOptions.setAlignmentLeft
(Vec alignment) Set alignment (anchor left).Constructors in rekit.primitives with parameters of type VecModifierConstructorDescriptionTextOptions
(Vec alignment, int height, RGBAColor color, String font, int fontOptions) Create a TextOption container.TextOptions
(Vec alignment, int height, RGBAColor color, String font, int fontOptions, boolean usefilter) Create a TextOption container. -
Uses of Vec in rekit.primitives.geometry
Methods in rekit.primitives.geometry that return VecModifier and TypeMethodDescriptionVec.abs()
ApplyMath.abs(float)
to x and y component and create new vector.Adds another vector to this vector and returns a new Vector.Vec.addX
(float deltaX) Adds a given number to the x-component and returns a new Vector.Vec.addY
(float deltaY) Adds a given number to the y-component and returns a new Vector.Vec.clone()
Vec.get()
Polygon.getStartPoint()
Get the start point of the polygon.Direction.getVector()
Get the vector to a corresponding direction.Multiplies the vectors x-component and its y-component with the x-component and y-component of another Vector and returns a new Vector.Vec.rotate
(double angle) Rotate this vector relative to (0|0).Rotate this vector relative to a vector.Vec.scalar
(float scalar) Multiplies the vector with a scalar and returns a new Vector.Vec.scalar
(float scalarX, float scalarY) Multiplies the vectors x-component and its y-component with separate scalars and returns a new Vector.Vec.setX
(float x) Sets number to the x-component and returns a new Vector.Vec.setY
(float y) Sets number to the y-component and returns a new Vector.Vec.setZ
(float z) Create a new vector with this x,y values but a new z value.Vec.sin()
Calculate the sin of x and y.Vec.translate2D
(float offset) Translate a 3D-Vector to 2D.Methods in rekit.primitives.geometry with parameters of type VecModifier and TypeMethodDescriptionAdds another vector to this vector and returns a new Vector.void
Add a new relative point.float
Vec.getAngleTo
(Vec other) Get the angle to another vector.boolean
Frame.intersects
(Vec position) Check whether this frame collides with another object.void
Move a polygon to target location.Multiplies the vectors x-component and its y-component with the x-component and y-component of another Vector and returns a new Vector.Rotate the polygon by angle and anchor.Rotate this vector relative to a vector.Constructors in rekit.primitives.geometry with parameters of type Vec -
Uses of Vec in rekit.util
Methods in rekit.util that return VecMethods in rekit.util with parameters of type Vec