Code cleanup : fix C style array declaration.
[Project_POO.git] / exo4 / Forme.java
... / ...
CommitLineData
1
2@ClassPreamble (
3 author = "Jérôme Benoit",
4 date = "11/17/2008"
5)
6public abstract class Forme implements Affichable {
7 private Point pOri;
8
9 public abstract void dessiner(Piletransformations pile);
10
11 Forme() {
12 pOri = new Point();
13 }
14
15 Forme(Point p) {
16 pOri = p;
17 }
18
19 public Point getpOri() {
20 return pOri;
21 }
22
23 public void deplacer(Point p) {
24 pOri = pOri.additionner(p);
25 }
26}