/** * Will update this nodes BaseEnemy and all BaseEnemys contained in nodes after this one */ public void updateAll(int setAnimationTime) { if (nextNode != null) { nextNode.updateAll(setAnimationTime); } if (data != null) { data.update(setAnimationTime); } }
/** * Will call the update function on all enemies in the set * @param setAnimationTime */ public void updateEnemiesInSet(int setAnimationTime) { firstNode.updateAll(setAnimationTime); }