Abstract class for future implementation of Composition Pattern.
This commit is contained in:
1 parent
5e29314e1b
commit
f21a6abc5b
3 files changed
+11
-1
No files matched your search
@@ -0,0 +1,4 @@
|
||||
package Composition;
|
||||
|
||||
public class GroupeAbstrait extends PersonnageAbstrait {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package Composition;
|
||||
|
||||
public class PersonnageAbstrait {
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user