Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void addAchievement(AchievementToken a)
 {
     tokens.Enqueue(a);
 }
Ejemplo n.º 3
0
 public static void rankUp(Rank r, Achievement a)
 {
     String name = a.getName();
     AchievementToken token = new AchievementToken((int)r, name);
     AchievementDisplay.Instance.addAchievement(token);
 }