Bandidos
Classes | Static Public Member Functions | List of all members
com.mygdx.game.factories.EnemyFactory Class Reference

Classes

enum  EnemyType
 

Static Public Member Functions

static Enemy createEnemyOfType (EnemyType enemyType)
 
static Enemy createEnemyOfTypeWithAI (EnemyType enemyType, Playfield playfield)
 
static float getHealthAmountForType (EnemyType enemyType)
 
static float getMovementSpeedForType (EnemyType enemyType)
 
static int getScoreAmountForType (EnemyType enemyType)
 
static String [] getUnwalkableTagsForType (EnemyType enemyType)
 
static BaseEnemyAttackComponent getAttackComponentForType (EnemyType enemyType)
 

Detailed Description

This class contains static methods which can be used to create enemies. The enemies are defined under Types and can have multiple skins under the same type. The stats can be set in this class for the given type.

Author
Ramses Di Perna

Member Function Documentation

◆ createEnemyOfType()

static Enemy com.mygdx.game.factories.EnemyFactory.createEnemyOfType ( EnemyType  enemyType)
static

This creates an instance of the enemy type given.

Parameters
enemyTypeto create
Returns
The instance of the given type with a random skin

◆ createEnemyOfTypeWithAI()

static Enemy com.mygdx.game.factories.EnemyFactory.createEnemyOfTypeWithAI ( EnemyType  enemyType,
Playfield  playfield 
)
static

This creates an instance of the enemy type given with its set AI onto it.

Parameters
enemyTypeto create
playfieldto give to the AI component
Returns
The instance of the given type with a random skin

◆ getAttackComponentForType()

static BaseEnemyAttackComponent com.mygdx.game.factories.EnemyFactory.getAttackComponentForType ( EnemyType  enemyType)
static

Returns an attack component instance which contains all the actions has all the information set needed for attack handling

Parameters
enemyTypeto get attack component instance for
Returns
The created AttackComponent instance

◆ getHealthAmountForType()

static float com.mygdx.game.factories.EnemyFactory.getHealthAmountForType ( EnemyType  enemyType)
static

Returns an amount for the given enemy type's health

Parameters
enemyTypeto get health amount for
Returns
The health value for the given enemy Type

◆ getMovementSpeedForType()

static float com.mygdx.game.factories.EnemyFactory.getMovementSpeedForType ( EnemyType  enemyType)
static

Returns an amount for the given enemy type's movement speed

Parameters
enemyTypeto get movement speed amount for
Returns
The movement speed value for the given enemy Type

◆ getScoreAmountForType()

static int com.mygdx.game.factories.EnemyFactory.getScoreAmountForType ( EnemyType  enemyType)
static

Returns an amount for the given enemy type's score

Parameters
enemyTypeto get score amount for
Returns
The score value for the given enemy Type

◆ getUnwalkableTagsForType()

static String [] com.mygdx.game.factories.EnemyFactory.getUnwalkableTagsForType ( EnemyType  enemyType)
static

Returns the unwalkable tiles for the given enemy type

Parameters
enemyTypeto get the unwalkable tile tags for
Returns
GridOccupyTags of the unwalkable tiles for this enemy

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