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
◆ ConsecutiveHitTracker()
com.mygdx.game.hitRegistration.ConsecutiveHitTracker.ConsecutiveHitTracker |
( |
Player |
player | ) |
|
◆ 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
-
event | which 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
◆ 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: