Class Enemy.EnemyReference

java.lang.Object
com.prineside.tdi2.Enemy.EnemyReference
All Implemented Interfaces:
KryoSerializable
Enclosing class:
Enemy

public static class Enemy.EnemyReference extends Object implements KryoSerializable
Use this wrapper to store a reference to an enemy (always if there's a chance the enemy will become unregistered between the moment it is stored & stored reference is used in the code) No need to use as method argument / as local variable (if there's no chance for the enemy to become unregistered while it is being used locally)