public override bool Update() { if (current == null) { if (tokens.Count == 0) { return true; } else { current = tokens.Dequeue(); Tesseract.Engine.GameWorld.GameState.InstantiateCurrent(current); } } if (current.living()) { current.Update(); } else { if (tokens.Count() != 0) { current = tokens.Dequeue(); Tesseract.Engine.GameWorld.GameState.InstantiateCurrent(current); } } return true; }
public void addAchievement(AchievementToken a) { tokens.Enqueue(a); }
public static void rankUp(Rank r, Achievement a) { String name = a.getName(); AchievementToken token = new AchievementToken((int)r, name); AchievementDisplay.Instance.addAchievement(token); }