Package com.fray.evo.util

Examples of com.fray.evo.util.RunnableAction


    if (s.larva.size() > s.hasQueen.size())
    {
      spawnLarva(s, e);
    }
    else
      s.addFutureAction(5, new RunnableAction()
      {
        @Override
        public void run(GameLog e)
        {
          if (s.larva.size() > s.hasQueen.size())
View Full Code Here


    if (s.larva.size() > hatchWithoutQueen)
    {
      s.hasQueen.add(true);

      final int hatchIndex = hatchWithoutQueen;
      s.addFutureAction(40, new RunnableAction()
      {
        @Override
        public void run(GameLog e)
        {
          if (e.isEnabled() && s.getLarva() < s.bases() * 19)
            e.printMessage(s, GameLog.MessageType.Obtained,
                " @"+messages.getString(ZergLibrary.Hatchery.getName()) + " #" + (hatchIndex+1) +" "
                + messages.getString(ZergLibrary.Larva.getName())
                + " +"
                + (Math.min(19, s.getLarva(hatchIndex) + 2) - s
                    .getLarva(hatchIndex)));
          s.setLarva(hatchIndex, Math.min(19, s.getLarva(hatchIndex) + 2));
          s.addFutureAction(1, new RunnableAction()
          {
            @Override
            public void run(GameLog e)
            {
              if (e.isEnabled() && s.getLarva() < s.bases() * 19)
 
View Full Code Here

  @Override
  protected void postExecute(final EcBuildOrder s, final GameLog e)
  {
    s.addUnits((Unit) buildable, 1);
    s.dronesGoingOnMinerals += 1;
    s.addFutureAction(2, new RunnableAction()
    {
      @Override
      public void run(GameLog e)
      {
        s.dronesGoingOnMinerals--;
View Full Code Here

TOP

Related Classes of com.fray.evo.util.RunnableAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.