From c1e4e6c0bdd12301d1b4f0c8430138509f03108b Mon Sep 17 00:00:00 2001 From: PlatinumSkink Date: Tue, 20 Oct 2015 15:58:02 +0200 Subject: [PATCH] KrakenHit event includes max health, current, and new. --- include/Game/CBrick.h | 2 +- include/Game/CKraken.h | 3 ++- include/Game/EKrakenHit.h | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/Game/CBrick.h b/include/Game/CBrick.h index e120fdb..7a5ae15 100644 --- a/include/Game/CBrick.h +++ b/include/Game/CBrick.h @@ -19,7 +19,7 @@ struct Brick : Component //0 = empty, 1 = normal, 2 = multi-brick, 3 = lifebuoy, 4 = sticky, 5 = blaster, 6 = kraken int Type = 0; bool Removed = false; - int Number = 0; // For the Kraken to keep track of which bricks needs replacing. + int Number = 100; // For the Kraken to keep track of which bricks needs replacing. //What number of types each is. const int EmptyBrickSpace = 0; diff --git a/include/Game/CKraken.h b/include/Game/CKraken.h index 41c831d..170f203 100644 --- a/include/Game/CKraken.h +++ b/include/Game/CKraken.h @@ -15,7 +15,8 @@ namespace Components struct Kraken : Component { - int Health = 10; + int MaxHealth = 30; + int Health = MaxHealth; int CurrentAction = 1; const int Idle = 1; diff --git a/include/Game/EKrakenHit.h b/include/Game/EKrakenHit.h index 7024395..7982e72 100644 --- a/include/Game/EKrakenHit.h +++ b/include/Game/EKrakenHit.h @@ -17,6 +17,9 @@ struct KrakenHit : Event { EntityID Kraken; EntityID Hitter; + int MaxHealth; + int CurrentHealth; + int NewHealth; }; }