package Ġcom . game . qu illy jump er . ecs . system Ċ Ċ import Ġcom . badlogic . ash ley . core . Engine Ċ import Ġcom . badlogic . ash ley . core . Entity Ċ import Ġcom . badlogic . ash ley . systems . Iter ating System Ċ import Ġcom . game . qu illy jump er . ecs . component . Remove Component Ċ import Ġcom . game . qu illy jump er . ecs . component . Trigger Component Ċ import Ġcom . game . qu illy jump er . ecs . component . trigger Cmp Ċ import Ġcom . game . qu illy jump er . event . Game EventListener Ċ import Ġcom . game . qu illy jump er . event . Game Event Manager Ċ import Ġk tx . ash ley . all Of Ċ import Ġk tx . ash ley . exclude Ċ Ċ class ĠTrigger System ( private Ġval Ġgame Event Manager : ĠGame Event Manager ) Ġ: ĊĠĠĠ ĠIter ating System ( all Of ( Trigger Component :: class ). exclude ( Remove Component :: class ). get ()), ĠGame EventListener Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġadded To Engine ( engine : ĠEngine ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . added To Engine ( engine ) ĊĠĠĠĠĠĠĠ Ġgame Event Manager . add Game EventListener ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġremoved From Engine ( engine : ĠEngine ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . removed From Engine ( engine ) ĊĠĠĠĠĠĠĠ Ġgame Event Manager . remove Game EventListener ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġprocess Entity ( entity : ĠEntity , Ġdelta Time : ĠFloat ) Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( entity . trigger Cmp ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( trigger . active ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( trigger . update ( deltaTime )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġentity . add ( engine . create Component ( Remove Component :: class . java )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġplayer Trigger Contact ( player : ĠEntity , Ġtrigger : ĠEntity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġtrigger . trigger Cmp . trigger . active Ġ= Ġtrue ĊĠĠĠ Ġ} Ċ } Ċ