Package com.prineside.tdi2
Class Enemy.EnemyReference
java.lang.Object
com.prineside.tdi2.Enemy.EnemyReference
- All Implemented Interfaces:
KryoSerializable
- Enclosing class:
- Enemy
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)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NULL
-
enemy
-
-
Constructor Details
-
EnemyReference
public EnemyReference()
-
-
Method Details
-
write
- Specified by:
write
in interfaceKryoSerializable
-
read
- Specified by:
read
in interfaceKryoSerializable
-