Esempio n. 1
0
 // Add a certain number of x Resource r to Player p
 // "w", "o", "l", "p" etc
 private static void AddResource(Player p, Resource r, int x)
 {
     int resourceNum = p.getResourceNum(r) + x;
     p.setResourceNum(r, resourceNum);
 }