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

Classes

enum  Direction
 
enum  TrapType
 

Static Public Member Functions

static BaseTrap createTrap (TrapType trapType, Direction direction, Grid grid)
 
static int getCountAmountForTrapReset (TrapType trapType)
 

Detailed Description

This class contains static methods which can be used to create traps. The traps 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

◆ createTrap()

static BaseTrap com.mygdx.game.factories.TrapFactory.createTrap ( TrapType  trapType,
Direction  direction,
Grid  grid 
)
static

This creates an instance of the given trap type

Parameters
trapTypeto create an instance for
Returns
the trap instance of the given type.

◆ getCountAmountForTrapReset()

static int com.mygdx.game.factories.TrapFactory.getCountAmountForTrapReset ( TrapType  trapType)
static

Returns the amount of counts an activator for this trap needs in order to reset.

Parameters
trapTypewhich the activator represents
Returns
the amount of counts needed as integer.

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