Commit fdf22de0 authored by Antoine Guérin's avatar Antoine Guérin
Browse files
parents bd5ac760 5c449f57
......@@ -20,7 +20,7 @@
<version>1.10.0</version>
<configuration>
<workingDirectory>./</workingDirectory>
<nodeVersion>v12.18.4cdc</nodeVersion>
<nodeVersion>v14.11.0</nodeVersion>
<yarnVersion>v1.22.5</yarnVersion>
</configuration>
<executions>
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>not-alone</artifactId>
<groupId>fr.univnantes.alma</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>not-alone-player</artifactId>
<name>Not Alone Player Services</name>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.10.0</version>
<configuration>
<workingDirectory>./</workingDirectory>
<nodeVersion>v12.18.4</nodeVersion>
<yarnVersion>v1.22.5</yarnVersion>
</configuration>
<executions>
<execution>
<id>install-node-and-yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>yarn-install</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
<phase>generate-resources</phase>
</execution>
<execution>
<id>yarn run build</id>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
<phase>compile</phase>
</execution>
<execution>
<id>code-generation</id>
<phase>generate-sources</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run codegen</arguments>
</configuration>
</execution>
<execution>
<id>yarn-clean</id>
<phase>clean</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run clean</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>./dist/not-alone-web</directory>
<targetPath>static</targetPath>
</resource>
</resources>
</build>
</project>
......@@ -10,6 +10,7 @@ public abstract class Jeton {
public Jeton() {
this.position = new ArrayList<>();
}
public void poserJeton(CarteLieu clieu)
{
position.add(clieu);
......
package fr.univnantes.alma.game.composant.Joueur;
public class Creature {
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import fr.univnantes.alma.game.composant.Jeton.Jeton;
import java.util.ArrayList;
public class Creature extends Joueur{
private Jeton jetonCreature;
private Jeton jetonCible; // peut etre changer parce revoir implementation jeton
private Jeton jetonArtemia;
private ArrayList<CarteLieu> carteTraque;
public Creature(String nom){
super(nom);
this.carteTraque = new ArrayList<CarteLieu>();
}
public ArrayList<CarteLieu> getCarteTraque() {
return carteTraque;
}
public void setCarteTraque(ArrayList<CarteLieu> carteTraque) {
this.carteTraque = carteTraque;
}
public void poserJetonCreature(card : CarteLieu){
}
public void poserJetonCible(card1 : CarteLieu, card2 : CarteLieu){
}
public void poserJetonArtemia(card : CarteLieu){
}
public void recupererJeton(){
}
}
package fr.univnantes.alma.game.composant.Joueur;
public class Joueur {
public abstract class Joueur {
private String nom;
public Joueur(String nom){
this.nom = nom;
}
public String getNom() {
return nom;
}
public void setNom(String nom) {
this.nom = nom;
}
}
package fr.univnantes.alma.game.composant.Joueur;
public class Traque {
import fr.univnantes.alma.game.composant.Carte.Carte;
import fr.univnantes.alma.game.composant.Carte.CarteLieu;
import java.util.ArrayList;
public class Traque extends Joueur{
private int pionVolonte;
private ArrayList<CarteLieu> carteLieu; // peut etre changer le nom par main
//private ArrayList<CarteLieu> defausse;
private ArrayList<CarteLieu> carteSurvie;
public Traque(String nom){
super(nom);
this.pionVolonte = 3;
this.carteLieu = new ArrayList<CarteLieu>();
//this.defausse = new ArrayList<CarteLieu>();
this.carteSurvie = new ArrayList<CarteLieu>();
}
public int getPionVolonte() {
return pionVolonte;
}
public void setPionVolonte(int pionVolonte) {
this.pionVolonte = pionVolonte;
}
public ArrayList<CarteLieu> getCarteLieu() {
return carteLieu;
}
public void setCarteLieu(ArrayList<CarteLieu> carteLieu) {
this.carteLieu = carteLieu;
}
public ArrayList<CarteLieu> getCarteSurvie() {
return carteSurvie;
}
public void setCarteSurvie(ArrayList<CarteLieu> carteSurvie) {
this.carteSurvie = carteSurvie;
}
public void reprendreCarte(nbCarte : Integer){
}
public void defausseCarte(card : CarteLieu){
}
public void piocherCarteTraque(){
}
}
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