|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDistributoreArmate
public class DistributoreArmate
Gestisce la distribuzione delle armate ai giocatori ad ogni inizio di turno. Calcola le armate in base ai territori posseduti, in pił somma ad esse un numero di armate bonus per ogni intero continente posseduto.
| Constructor Summary | |
|---|---|
DistributoreArmate()
|
|
| Method Summary | |
|---|---|
static int |
calcolaArmatePerCarte(Giocatore g)
Calcola un numero di armate bonus in base alle combinazione di carte possedute dal giocatore. |
static int |
daiArmate(Giocatore giocatore)
Calcola il numero totale di territori posseduti dal giocatore al quale distribuire le armate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributoreArmate()
| Method Detail |
|---|
public static int calcolaArmatePerCarte(Giocatore g)
g - riferimento al Giocatore
Giocatore in base alle carte possedutepublic static int daiArmate(Giocatore giocatore)
giocatore - Giocatore al quale distribuire le
armate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||