Commit 35e595e1 authored by babablaze's avatar babablaze
Browse files

add Pion, PionAssimilation and pionSecour v1

parent 922f6a80
This diff is collapsed.
package fr.univnantes.alma.game.composant.Pion;
public class Pion {
public abstract class Pion {
protected int position;
public Pion(int position){
this.position = position;
}
public abstract int getPosition();
public abstract void setPosition(int position);
@Override
public String toString() {
return "Pion{" +
"position=" + position +
'}';
}
}
package fr.univnantes.alma.game.composant.Pion;
public class PionAssimilation {
public class PionAssimilation extends Pion {
public PionAssimilation(int position) {
super(position);
}
@Override
public int getPosition() {
return super.position;
}
@Override
public void setPosition(int position) {
super.position = position;
}
@Override
public String toString() {
return "PionAssimilation{" +
"position=" + super.position +
'}';
}
}
package fr.univnantes.alma.game.composant.Pion;
public class PionSecours {
public class PionSecours extends Pion {
public PionSecours(int position) {
super(position);
}
@Override
public int getPosition() {
return super.position;
}
@Override
public void setPosition(int position) {
super.position = position;
}
@Override
public String toString() {
return "PionSecours{" +
"position=" + super.position +
'}';
}
}
......@@ -123,5 +123,8 @@
}
}
},
"defaultProject": "not-alone-web"
"defaultProject": "not-alone-web",
"cli": {
"analytics": false
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -20,8 +20,8 @@
<version>1.10.0</version>
<configuration>
<workingDirectory>./</workingDirectory>
<nodeVersion>v14.15.1</nodeVersion>
<npmVersion>6.14.8</npmVersion>
<nodeVersion>v14.11.0</nodeVersion>
<npmVersion>7.0.10</npmVersion>
</configuration>
<executions>
<execution>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment