Bandidos
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.mygdx.game.tutorial.BowDemonstrationTutorial Class Reference
Inheritance diagram for com.mygdx.game.tutorial.BowDemonstrationTutorial:
com.mygdx.game.engine.entities.BaseEntity com.mygdx.game.engine.events.IEventReceiver com.mygdx.game.engine.events.EventDispatcher

Public Member Functions

boolean isTutorialOver ()
 
 BowDemonstrationTutorial (Player player, Playfield playfield)
 
void startTutorial ()
 
void onReceiveEvent (Event event)
 
- Public Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity
 BaseEntity ()
 
TransformComponent getTransformComponent ()
 
boolean hasInstanceOfComponent (BaseEntityComponent componentInstance)
 
void addTag (String tag)
 
void removeTag (String tag)
 
boolean hasTag (String tag)
 
void update (float dt)
 
void render (RenderComponents renderComponents)
 
void destroy ()
 
boolean isDestroyed ()
 
- 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 ()
 

Static Public Attributes

static final String TUTORIAL_DONE_EVENT = "TutorialDoneEvent"
 

Protected Member Functions

void awake ()
 
void updated (float dt)
 
void rendered (RenderComponents renderComponents)
 
void destroyed ()
 
- Protected Member Functions inherited from com.mygdx.game.engine.entities.BaseEntity
abstract void awake ()
 
abstract void updated (float dt)
 
abstract void rendered (RenderComponents renderComponents)
 
abstract void destroyed ()
 

Detailed Description

This entity will handle the full course of the interactive tutorial

Author
Djamali Jones & Ramses Di Perna

Constructor & Destructor Documentation

◆ BowDemonstrationTutorial()

com.mygdx.game.tutorial.BowDemonstrationTutorial.BowDemonstrationTutorial ( Player  player,
Playfield  playfield 
)

Member Function Documentation

◆ awake()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.awake ( )
protected

◆ destroyed()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.destroyed ( )
protected

◆ isTutorialOver()

boolean com.mygdx.game.tutorial.BowDemonstrationTutorial.isTutorialOver ( )

Returns whether the tutorial is over or not.

Returns
true if the tutorial is over, else false

◆ onReceiveEvent()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.onReceiveEvent ( Event  event)

This will be triggered when an event has been fired of type which this implementing class was listening to.

Parameters
eventwhich has one of the event types which is listened to.

Implements com.mygdx.game.engine.events.IEventReceiver.

◆ rendered()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.rendered ( RenderComponents  renderComponents)
protected

◆ startTutorial()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.startTutorial ( )

Starts the tutorial which displays the computer taking over bow control, spawning and killing an enemy and spawning and killing an enemy with a trap.

Parameters
durationon how long this tutorial animation must take.

◆ updated()

void com.mygdx.game.tutorial.BowDemonstrationTutorial.updated ( float  dt)
protected

Member Data Documentation

◆ TUTORIAL_DONE_EVENT

final String com.mygdx.game.tutorial.BowDemonstrationTutorial.TUTORIAL_DONE_EVENT = "TutorialDoneEvent"
static

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