Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.Location_FE.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.Location_FE.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.utils.Location
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.Location_FE
public static class LJ_GDX_ai.Location_FE.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.utils.Location
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector
angleToVector
(com.badlogic.gdx.math.Vector p1, float p2) Returns the unit vector in the direction of the specified angle expressed in radians.float
Returns the float value indicating the orientation of this location.com.badlogic.gdx.math.Vector
Returns the vector indicating the position of this location.com.badlogic.gdx.ai.utils.Location
Creates a new location.void
setOrientation
(float p1) Sets the orientation of this location, i.e.float
vectorToAngle
(com.badlogic.gdx.math.Vector p1) Returns the angle in radians pointing along the specified vector.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
angleToVector
public com.badlogic.gdx.math.Vector angleToVector(com.badlogic.gdx.math.Vector p1, float p2) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the unit vector in the direction of the specified angle expressed in radians.- Specified by:
angleToVector
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the output vector.p2
- the angle in radians.- Returns:
- the output vector for chaining.
-
getOrientation
public float getOrientation()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the float value indicating the orientation of this location. The orientation is the angle in radians representing the direction that this location is facing.- Specified by:
getOrientation
in interfacecom.badlogic.gdx.ai.utils.Location
-
getPosition
public com.badlogic.gdx.math.Vector getPosition()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the vector indicating the position of this location.- Specified by:
getPosition
in interfacecom.badlogic.gdx.ai.utils.Location
-
newLocation
public com.badlogic.gdx.ai.utils.Location newLocation()Description copied from interface:com.badlogic.gdx.ai.utils.Location
Creates a new location.This method is used internally to instantiate locations of the correct type parameter
T
. This technique keeps the API simple and makes the API easier to use with the GWT backend because avoids the use of reflection.- Specified by:
newLocation
in interfacecom.badlogic.gdx.ai.utils.Location
- Returns:
- the newly created location.
-
setOrientation
public void setOrientation(float p1) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Sets the orientation of this location, i.e. the angle in radians representing the direction that this location is facing.- Specified by:
setOrientation
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the orientation in radians
-
vectorToAngle
public float vectorToAngle(com.badlogic.gdx.math.Vector p1) Description copied from interface:com.badlogic.gdx.ai.utils.Location
Returns the angle in radians pointing along the specified vector.- Specified by:
vectorToAngle
in interfacecom.badlogic.gdx.ai.utils.Location
- Parameters:
p1
- the vector
-