Seems with the refactoring also a small bug found its way into the game. Luckily no crasher bug this time. The cannon is acting strange.
Problem: The Cannon doesn't rotate anymore and shoots cannonballs into wrong directions and it shoots own creatures. Own creatures do not attack the cannon however.
When did it appear: The bug appeared some commits/days ago already, when generalizing everything into GameEntity. Not sure which commit exactly. Probably when making Trap a GameEntity.
I'd tried to find the cause of this behaviour, but I coulnd't find where the Cannon rotates itself and where I have to look for the code that finds out which objects to attack... I assume that some color comparison goes wrong here.
Maybe the refactoring even "fixed" some other Trap bug/hack that caused this new one to appear, because only the Cannon is acting strange, the fighting code for everything else works fine as always even though everything else was also refactored.