public void buildCastle(Village v) { int vWood = v.getWood (); VillageType vType = v.getMyType (); VillageActionType vAction = v.getAction (); if (vType != VillageType.Fort) { gameGUI.displayError (@"Upgrade to a Fort before building a Castle"); } else if (vWood < 12) { gameGUI.displayError (@"Castles require more lumber (12)"); } else if (vAction != VillageActionType.ReadyForOrders) { gameGUI.displayError (@"You cant queue build orders :/"); } else { v.setAction(VillageActionType.StartedUpgrading); v.addWood (-12); } }