Commit 253f3076 authored by CRESCENCE Cassandre's avatar CRESCENCE Cassandre

Update Node.java

parent 2061feab
......@@ -13,7 +13,8 @@ import java.util.ArrayList;
public class Node {
State state;
Node parent;
ArrayList<Coup> childArray;
ArrayList<Node> childArray;
Coup coupAssocie;
//getters
public State getState(){
......@@ -22,9 +23,12 @@ public class Node {
public Node getParent(){
return parent;
}
public ArrayList<Coup> getChildArray(){
public ArrayList<Node> getChildArray(){
return childArray;
}
public Coup getCoupAssocie(){
return coupAssocie;
}
//setters
public void setState(State state){
......@@ -33,8 +37,11 @@ public class Node {
public void setParent(Node parent){
this.parent = parent;
}
public void setChildArray( ArrayList<Coup> childArray){
public void setChildArray( ArrayList<Node> childArray){
this.childArray = childArray;
}
public void setCoupAssocie(Coup coupAssocie){
this.coupAssocie = coupAssocie;
}
}
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