|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgalaxiia.jeu.objectif.type.ProtectionEquipe
public class ProtectionEquipe
Objectif de protection d'équipe : Tant que l'équipe à protéger possède un vaisseau, cet objectif est accomplit.
| Field Summary |
|---|
| Fields inherited from interface galaxiia.jeu.objectif.Objectif |
|---|
ANNIHILATION, ANNIHILATION_EQUIPE, AUCUN_OBJECTIF, PLACEMENT, PROTECTION_EQUIPE |
| Constructor Summary | |
|---|---|
ProtectionEquipe(int equipeProtegee)
Créer un nouvel objectif de protection d'équipe. |
|
| Method Summary | |
|---|---|
Objectif |
copie()
Créer une copie de l'objectif. |
int |
equipeProtegee()
Donne le numéro de l'équipe à protéger. |
boolean |
heritageObjectif()
Dit si l'objectif doit être donné aux unitées construitent par toutes unitées possédant cet objectif. |
boolean |
objectifAccompli(InformateurUnite unite,
InformateurTerrain terrain)
Dit si cet objectif est accompli pour une unité et un terrain donné. |
int |
type()
Donne le type de l'objectif. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProtectionEquipe(int equipeProtegee)
equipeProtegee - L'équipe à protéger.| Method Detail |
|---|
public boolean heritageObjectif()
heritageObjectif in interface Objectiftrue si l'objectif est héréditaire,
false sinon.
public boolean objectifAccompli(InformateurUnite unite,
InformateurTerrain terrain)
objectifAccompli in interface Objectifunite - L'unité qui doit remplir l'objectif.terrain - Le terrain où l'unité doit remplir l'objectif.
true si l'objectif est accompli,
false sinon.public int equipeProtegee()
public int type()
type in interface Objectifpublic Objectif copie()
copie in interface Objectif
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||