Bandidos
Classes | Public Member Functions | Static Public Attributes | List of all members
com.mygdx.game.hitRegistration.ConsecutiveHitTracker Class Reference
Inheritance diagram for com.mygdx.game.hitRegistration.ConsecutiveHitTracker:
com.mygdx.game.engine.events.IEventReceiver

Public Member Functions

 ConsecutiveHitTracker (Player player)
 
void clean ()
 
void onReceiveEvent (Event event)
 
void resetConsecutiveHitCounter ()
 

Static Public Attributes

static final int CONSECUTIVE_HITS_FOR_UPGRADE = 5
 

Detailed Description

This class tracks all the consecutive hits. It will call the upgrade weapon method on the player when it hits the consecutive hits mark This system will only register hits which had the hit type 'HitGlobals.TYPE_CONSECUTIVE_HIT_TRACKING' in them

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ ConsecutiveHitTracker()

com.mygdx.game.hitRegistration.ConsecutiveHitTracker.ConsecutiveHitTracker ( Player  player)

Member Function Documentation

◆ clean()

void com.mygdx.game.hitRegistration.ConsecutiveHitTracker.clean ( )

◆ onReceiveEvent()

void com.mygdx.game.hitRegistration.ConsecutiveHitTracker.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.

◆ resetConsecutiveHitCounter()

void com.mygdx.game.hitRegistration.ConsecutiveHitTracker.resetConsecutiveHitCounter ( )

Resets the consecutive hits counter to 0

Member Data Documentation

◆ CONSECUTIVE_HITS_FOR_UPGRADE

final int com.mygdx.game.hitRegistration.ConsecutiveHitTracker.CONSECUTIVE_HITS_FOR_UPGRADE = 5
static

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