From bdc434ecc3c6b1a8d09da74e2f2a79e6f098bb82 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sat, 1 May 2021 23:07:34 +0200 Subject: [PATCH] refactor: added comments and rearranged EventTypes --- .../gamelibrary/events/EventType.java | 35 ++++++++++++++++--- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java index 49a0bf9..ec70978 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java @@ -2,9 +2,34 @@ package uulm.teamname.marvelous.gamelibrary.events; /** Specifies the type of an {@link Event}. */ public enum EventType { - //please make it stop - Ack, Nack, Req, GameStateEvent, CustomEvent, - DestroyedEntityEvent, TakenDamageEvent, ConsumedAPEvent, ConsumedMPEvent, SpawnEntityEvent, HealedEvent, - MeleeAttackEvent, RangedAttackEvent, MoveEvent, UseInfinityStoneEvent, ExchangeInfinityStoneEvent, - RoundSetupEvent, TurnEvent, WinEvent, TurnTimeoutEvent, TimeoutWarningEvent, TimeoutEvent, DisconnectEvent + // GamestateEvents + Ack, + Nack, + Req, + GameStateEvent, + CustomEvent, + + // EntityEvents + DestroyedEntityEvent, + TakenDamageEvent, + ConsumedAPEvent, + ConsumedMPEvent, + SpawnEntityEvent, + HealedEvent, + + // CharacterEvents + MeleeAttackEvent, + RangedAttackEvent, + MoveEvent, + UseInfinityStoneEvent, + ExchangeInfinityStoneEvent, + + // GameEvents + RoundSetupEvent, + TurnEvent, + WinEvent, + TurnTimeoutEvent, + TimeoutWarningEvent, + TimeoutEvent, + DisconnectEvent }