Package people

Examples of people.Leader


  {
    //fishing and water refill
    World.getWagon().getInventory().getWater().setNumber(200);
    World.getWagon().getInventory().getFood().setNumber(World.getWagon().getInventory().getFood().getNumber()+10);

    Leader leader = World.getWagon().getLeader();
    if(leader.getMoney() < getCost())
      throw new InsufficientFundsException();
    else
    {
      leader.setMoney(leader.getMoney()-getCost());
      World.getWagon().setNotification("You spent some money to cross safely.");
      //System.out.println("FERRY RESULT");
    }
  }
View Full Code Here

TOP

Related Classes of people.Leader

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.