Skip to main content

EnemyAITypeA

class EnemyAITypeA

Component used to create an enemy artificial intelligence


public class EnemyAITypeA extends Component

— Constructors (1) —

ConstructorDescription
EnemyAITypeA()Creates a new instance of EnemyAITypeA.

— Enumerators — (2)

public enum MovementMode {
Transform, RigidBody, CharacterBody
}

public enum State {
Idle, Walking, Attacking
}

— Methods (26) —

NameDescription
TagEnemyFieldOfView getFieldOfView()Returns the current field of view of EnemyAITypeA.
[MovementMode] getMovementMode()Returns the current EnemyAITypeA motion mode ("Transform", "RigidBody", or "CharacterBody").
void setMovementMode([MovementMode] value)Sets the current motion mode of EnemyAITypeA ("Transform", "RigidBody", or "CharacterBody").
SpatialObject getPoints()Returns the current movement points of EnemyAITypeA.
void setPoints(SpatialObject value)Sets the current movement points of EnemyAITypeA.
float getRayDistance()Returns the current distance of the EnemyAITypeA radius of view.
void setRayDistance(float value)Sets the current distance of the EnemyAITypeA radius of view.
float getRayOffset()Returns the current offset value of the EnemyAITypeA radius of view.
void setRayOffset(float value)Sets the current offset value of the EnemyAITypeA radius of view.
float getRunSpeed()Returns the value of the current EnemyAITypeA run speed.
void setRunSpeed(float value)Sets the value of the current EnemyAITypeA run speed.
float getStickBottomOffset()Returns the current offset value between EnemyAITypeA and the ground.
void setStickBottomOffset(float value)Sets the current offset value between EnemyAITypeA and the ground.
float getSwapTargetDistance()Returns the current distance exchange value of the target.
void setSwapTargetDistance(float value)Sets the current distance exchange value of the target.
float getWalkSpeed()Returns the value of the current movement speed of the EnemyAITypeA.
void setWalkSpeed(float value)Sets the value of the current movement speed of EnemyAITypeA.
boolean isStickBottom()Returns true if EnemyAITypeA is colliding with the ground, returns false if not.
void setStickBottom(boolean value)Defines whether or not EnemyAITypeA is colliding with the ground.
float getStartAttackDistance()Returns the current distance of the initial EnemyAITypeA attack.
void setStartAttackDistance(float value)Sets the current distance from the initial EnemyAITypeA attack.
float getAttackDelay()Returns the current delay value of the EnemyAITypeA attack.
void setAttackDelay(float value)Sets the current delay value of the EnemyAITypeA attack.
float getSwapTargetDelay()Returns the swap delay value of the EnemyAITypeA target.
void setSwapTargetDelay(float value)Sets the EnemyAITypeA target swap delay value.
[State] getState()Returns the current state of EnemyAITypeA ("Idle", "Walking", or "Attacking").