public abstract class GameObject
extends com.jme3.scene.control.AbstractControl
Game#addAgent(com.jme3.ai.agents.Agent)
,
Game#addAgent(com.jme3.ai.agents.Agent, com.jme3.math.Vector3f)
,
For other
GameObject use:
,
Game#addGameObject(com.jme3.ai.agents.util.GameObject)
Modifier and Type | Field and Description |
---|---|
protected com.jme3.math.Vector3f |
acceleration
GameObject acceleration speed.
|
protected float |
hitPoint
Current hitPoint status of GameObject.
|
protected float |
mass
Mass of GameObject.
|
protected float |
maxForce
Maximum force that can be applied to this GameObject.
|
protected float |
maxHitPoint
Maximum hitPoint that GameObject can have.
|
protected float |
maxMoveSpeed
Maximum move speed of GameObject
|
protected float |
moveSpeed
Current move speed of GameObject.
|
protected float |
rotationSpeed
Rotation speed of GameObject.
|
protected com.jme3.math.Vector3f |
velocity
Container for the velocity of the game object
|
Constructor and Description |
---|
GameObject() |
Modifier and Type | Method and Description |
---|---|
void |
decreaseHitPoints(double damage)
Method for decreasing agents hitPoint for fixed amount.
|
com.jme3.math.Vector3f |
getAcceleration() |
float |
getHitPoint() |
com.jme3.math.Quaternion |
getLocalRotation() |
com.jme3.math.Vector3f |
getLocalTranslation() |
float |
getMass() |
float |
getMaxForce() |
float |
getMaxHitPoint() |
float |
getMaxMoveSpeed() |
float |
getMoveSpeed() |
float |
getRotationSpeed() |
com.jme3.math.Vector3f |
getVelocity() |
void |
increaseHitPoint(float potionHitPoint)
Method for increasing agents hitPoint for fixed amount.
|
void |
setAcceleration(com.jme3.math.Vector3f acceleration) |
void |
setHitPoint(float hitPoint) |
void |
setLocalRotation(com.jme3.math.Quaternion rotation) |
void |
setLocalTranslation(float x,
float y,
float z)
Setting local translation of agent
|
void |
setLocalTranslation(com.jme3.math.Vector3f position) |
void |
setMass(float mass) |
void |
setMaxForce(float maxForce) |
void |
setMaxHitPoint(float maxHitPoint) |
void |
setMaxMoveSpeed(float maxMoveSpeed) |
void |
setMoveSpeed(float moveSpeed) |
void |
setRotationSpeed(float rotationSpeed) |
void |
setVelocity(com.jme3.math.Vector3f velocity) |
protected com.jme3.math.Vector3f velocity
protected float mass
protected com.jme3.math.Vector3f acceleration
protected float moveSpeed
protected float maxMoveSpeed
protected float maxForce
protected float hitPoint
protected float maxHitPoint
protected float rotationSpeed
public void setVelocity(com.jme3.math.Vector3f velocity)
public com.jme3.math.Vector3f getVelocity()
public void increaseHitPoint(float potionHitPoint)
potionHitPoint
- amount of hitPoint that should be addedAgent#maxHitPoint
public void decreaseHitPoints(double damage)
damage
- amount of hitPoint that should be removedAgent#alive
public float getMass()
public void setMass(float mass)
public com.jme3.math.Vector3f getAcceleration()
public void setAcceleration(com.jme3.math.Vector3f acceleration)
public float getMoveSpeed()
public void setMoveSpeed(float moveSpeed)
public float getMaxForce()
public void setMaxForce(float maxForce)
public float getHitPoint()
public void setHitPoint(float hitPoint)
public float getMaxHitPoint()
public void setMaxHitPoint(float maxHitPoint)
public com.jme3.math.Quaternion getLocalRotation()
public void setLocalRotation(com.jme3.math.Quaternion rotation)
public com.jme3.math.Vector3f getLocalTranslation()
public void setLocalTranslation(com.jme3.math.Vector3f position)
position
- local translation of agentpublic void setLocalTranslation(float x, float y, float z)
x
- x translationy
- y translationz
- z translationpublic float getRotationSpeed()
public void setRotationSpeed(float rotationSpeed)
public float getMaxMoveSpeed()
public void setMaxMoveSpeed(float maxMoveSpeed)