Abstract class for future implementation of Composition Pattern.

This commit is contained in:
aminecmi 2014-12-03 18:01:54 +01:00
parent 5e29314e1b
commit f21a6abc5b
3 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,4 @@
package Composition;
public class GroupeAbstrait extends PersonnageAbstrait {
}

View File

@ -0,0 +1,5 @@
package Composition;
public class PersonnageAbstrait {
}

View File

@ -2,10 +2,11 @@ package Person;
import Comportements.ComportementCombat;
import Comportements.ComportementEmmetreSon;
import Composition.PersonnageAbstrait;
import Observateur.ObservateurAbstrait;
import Observateur.Organisation;
public class Personnage implements ObservateurAbstrait {
public class Personnage extends PersonnageAbstrait implements ObservateurAbstrait {
protected String nom;
protected ComportementCombat comportementCombat;
protected ComportementEmmetreSon comportementEmmetreSon;