Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.components.BasicEnemyAIComponent Class Reference
Inheritance diagram for com.mygdx.game.components.BasicEnemyAIComponent:
com.mygdx.game.components.BaseEnemyAIComponent com.mygdx.game.components.BaseGridNavigationComponent com.mygdx.game.components.GridUserComponent com.mygdx.game.engine.entities.components.BaseEntityComponent com.mygdx.game.engine.events.EventDispatcher

Public Member Functions

 BasicEnemyAIComponent (Playfield playfield, float movementSpeed, String[] unwalkableTags)
 
- Public Member Functions inherited from com.mygdx.game.components.BaseEnemyAIComponent
 BaseEnemyAIComponent (Playfield playfield, float movementSpeed, String[] unwalkableTags)
 
void setSideStepChance (int percentage)
 
int getSideStepChance ()
 
void awake ()
 
- Public Member Functions inherited from com.mygdx.game.components.BaseGridNavigationComponent
 BaseGridNavigationComponent (Grid grid, String gridOccupyTag, int xSize, int ySize)
 
void addUnwalkableOccupyTag (String tag)
 
boolean hasUnwalkableOccupyTag (String tag)
 
void removeUnwalkableOccupyTag (String tag)
 
- Public Member Functions inherited from com.mygdx.game.components.GridUserComponent
 GridUserComponent (Grid grid, String gridOccupyTag, int xSize, int ySize)
 
 GridUserComponent (Grid grid, String[] gridOccupyTags, int xSize, int ySize)
 
GridTile getCurrentLocatedTile ()
 
boolean isLocated ()
 
int getLocationX ()
 
int getLocationY ()
 
void placeSelfOnLocation (int x, int y)
 
void removeSelfFromLocation ()
 
Collection< String > getGridOccupyTags ()
 
void addGridOccupyTag (String tag)
 
void removeGridOccupyTag (String tag)
 
boolean hasGridOccupyTag (String tag)
 
void awake ()
 
- Public Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent
EngineTween startTweenOnComponent (Tween tween, TweenStartType tweenStartType)
 
Timeline startTimelineOnComponent (Timeline timeline, boolean updateInGameTime)
 
EngineTween doFloat (TweenableFloat floatToTween, float newValue, float duration, TweenStartType tweenStartType)
 
void stopAllComponentTweens ()
 
void initialize (BaseEntity parentEntity)
 
BaseEntity getParentOfComponent ()
 
boolean isActive ()
 
boolean isDestroyed ()
 
void setActiveState (boolean activeState)
 
void destroy ()
 
void update (float deltaTime)
 
abstract void awake ()
 
- Public Member Functions inherited from com.mygdx.game.engine.events.EventDispatcher
void addEventListener (String type, IEventReceiver listeningClass)
 
void dispatchEvent (Event event)
 
void removeEventListener (String type, IEventReceiver listener)
 
boolean hasEventListener (String type)
 
ArrayList< ListenerItemgetAllListeners ()
 
void destroyAllListeners ()
 
void clean ()
 

Protected Member Functions

void updated (float dt)
 
- Protected Member Functions inherited from com.mygdx.game.components.BaseEnemyAIComponent
void destroyed ()
 
float getMovementSpeed ()
 
Playfield getPlayfield ()
 
Enemy getAffectedEnemy ()
 
void moveToPlayerBase (int yRowToStop)
 
- Protected Member Functions inherited from com.mygdx.game.components.BaseGridNavigationComponent
Vector2 getNewTargetTile (float sideStepChance)
 
Vector2 getSideStep ()
 
Vector2 getTargetPosition ()
 
boolean canWalkOnTile (int tileX, int tileY)
 
Vector2 getWalkableTileOnRow (int yRow)
 
boolean hasAnyUnwalkableOccupyTag (GridTile tile)
 
- Protected Member Functions inherited from com.mygdx.game.components.GridUserComponent
Grid getGrid ()
 
void destroyed ()
 
void updated (float deltaTime)
 
void activeStateChanged ()
 
- Protected Member Functions inherited from com.mygdx.game.engine.entities.components.BaseEntityComponent
abstract void updated (float deltaTime)
 
abstract void destroyed ()
 
abstract void activeStateChanged ()
 

Additional Inherited Members

- Static Public Attributes inherited from com.mygdx.game.components.GridUserComponent
static final int NOT_LOCATED_VALUE = -1337
 

Detailed Description

This component should be added to an enemy have its body be controlled by an AI system. This will contain various basic tasks as navigation and attacking the player base.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ BasicEnemyAIComponent()

com.mygdx.game.components.BasicEnemyAIComponent.BasicEnemyAIComponent ( Playfield  playfield,
float  movementSpeed,
String []  unwalkableTags 
)

Member Function Documentation

◆ updated()

void com.mygdx.game.components.BasicEnemyAIComponent.updated ( float  dt)
protected

The documentation for this class was generated from the following file: