Commit 2efe3b97 authored by dkonam's avatar dkonam
Browse files

log

parent f01beb54
......@@ -5,6 +5,7 @@
*/
package com.utclo23.data.module;
import com.utclo23.data.structure.SerializableEntity;
import java.util.ArrayList;
import java.util.List;
......@@ -13,7 +14,7 @@ import java.util.List;
* store mementos and reload it into game
* @author Davy
*/
public class Caretaker {
public class Caretaker extends SerializableEntity{
/**
* list of memento
*/
......
......@@ -6,6 +6,7 @@
package com.utclo23.data.module;
import com.utclo23.data.structure.Event;
import com.utclo23.data.structure.SerializableEntity;
import java.util.List;
/**
......@@ -13,7 +14,7 @@ import java.util.List;
* Keep a state of a game
* @author Davy
*/
public class Memento {
public class Memento extends SerializableEntity{
/**
* list of events (messages, ships)
*/
......
......@@ -37,13 +37,12 @@ public abstract class Game extends SerializableEntity {
public Game(StatGame statGame, List<Player> players, List<LightPublicUser> spectators, List<Message> messages) {
this.statGame = statGame;
this.statGame.setRealGame(this);
this.players = players;
this.spectators = spectators;
this.messages = messages;
this.currentPlayer = players.get(0);
/* creation of caretaker */
this.caretaker = new Caretaker();
......
Supports Markdown
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