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 voidGameGrid.drawCircle(Vec pos, Vec size, RGBAColor color) Draw a circle.
invokesGameGrid.drawCircle(Vec, Vec, RGBAColor, boolean, boolean)and set ingame and usefilter totrueabstract voidGameGrid.drawCircle(Vec pos, Vec size, RGBAColor color, boolean ingame, boolean usefilter) Draw a circle.final voidDraw an image.voidDraw an image.abstract voidGameGrid.drawImage(Vec pos, Vec size, String imagePath, boolean ingame, boolean usefilter, boolean mirrorX, boolean mirrorY) Draw an image.final voidDraw a line between two given points with line width 1px in black.final voidDraw a line between two given points with a given lineWidth in black.abstract voidDraw a line between two given points with a given lineWidth and a color.final voidabstract voidDraw a path.final voidGameGrid.drawRectangle(Vec pos, Vec size, RGBAColor color) Draw a rectangle.
invokesGameGrid.drawRectangle(Vec, Vec, RGBAColor, boolean, boolean)and set ingame and usefilter totrueabstract voidGameGrid.drawRectangle(Vec pos, Vec size, RGBAColor color, boolean ingame, boolean usefilter) Draw a rectangle.final voidGameGrid.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 totrueabstract voidGameGrid.drawRoundRectangle(Vec pos, Vec size, RGBAColor color, float arcWidth, float arcHeight, boolean ingame, boolean usefilter) Draw a rectangle with round corners.abstract voidGameGrid.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 voidabstract voidDraw a path. -
Uses of Vec in rekit.logic.gameelements
Methods in rekit.logic.gameelements that return VecModifier and TypeMethodDescriptionfinal VecGameElement.getPos()Getter for theGameElementsabsolute position.final VecGameElement.getSize()Getter for theGameElementssize.final VecGameElement.getVel()Getter for theGameElementsvelocity.Methods in rekit.logic.gameelements with parameters of type VecModifier and TypeMethodDescriptionStub Factory method that everyGameElementmust implement in order to being able to be instantiated dynamically by the level creation.final voidSetter for theGameElementsabsolute position.voidSet the size of the GameElement.final voidSetter for theGameElementsvelocity.Constructors in rekit.logic.gameelements with parameters of type VecModifierConstructorDescriptionprotectedGameElement(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 VecModifierConstructorDescriptionprotectedConstructor that initializes attributes and takes a start position.Create a player by start position.protectedStateEntity(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 VecModifierConstructorDescriptionprotectedDefaultCoin(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 voidInanimateTrigger.createTrigger(Vec pos, Vec size, Runnable onPerform) Utility function for easy use with lambdas.static InanimateInanimateBox.staticCreate(Vec pos) Create a new InanimateBox.static InanimateInanimateFloor.staticCreate(Vec pos) Static create method that will be used byInanimatefor it in order to decide betweenInanimateFloorandInanimateBox.Constructors in rekit.logic.gameelements.inanimate with parameters of type VecModifierConstructorDescriptionprotectedCreate an inanimate.protectedCreate an inanimate.protectedInanimateBox(Vec pos, Vec size, RGBAColor color) Create an InanimateBox.InanimateDoor(Vec pos) Create a new door.protectedInanimateFloor(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 TypeMethodDescriptionvoidParticle.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.voidSpawn particles in aISceneat 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 theBossrelative to theBossStructurestop left corner.Methods in rekit.logic.gameelements.type with parameters of type VecModifier and TypeMethodDescriptionabstract Bossabstract Coinabstract DynamicInanimateabstract Enemyabstract PickupConstructors in rekit.logic.gameelements.type with parameters of type VecModifierConstructorDescriptionprotectedCreate a Boss.protectedInstantiate a Coin by position.protectedDynamicInanimate(Vec pos, Vec size, RGBAColor color) Create an inanimate.protectedCreate an Enemy.protectedCreate a pickup. -
Uses of Vec in rekit.logic.gui
Fields in rekit.logic.gui declared as VecModifier and TypeFieldDescriptionprotected VecGuiElement.posThe current position.protected VecGuiElement.sizeThe current size.Methods in rekit.logic.gui that return VecModifier and TypeMethodDescriptionfinal VecGuiElement.getPos()Get the current position.final VecGuiElement.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.voidAdd a new relative point.floatVec.getAngleTo(Vec other) Get the angle to another vector.booleanFrame.intersects(Vec position) Check whether this frame collides with another object.voidMove 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