Commit f0b30cdd authored by Thomas Dupriez's avatar Thomas Dupriez

Generated a follower for each player. Hope it works

parent 8ec70a0b
......@@ -59,6 +59,12 @@ public class GameContent implements Serializable{
c.setFaction(1);
gameState.addEntity(c);
players.add(c);
Character follower = SpeciesArray.createCharacter(posX, posY, 5000, "Ponyta", "ponyta"+(i+1));
follower.setFaction(1);
gameState.addEntity(follower);
Relayer followerRelayer = Relayers.addNewRelayer(follower);
AIControler.add(this, followerRelayer, EnumBehaviourType.Follower);
}
System.out.println("GameContent class: One gameContent created by"+Thread.currentThread().getId());
Logging.getInstance().getLogger().info("GameContent class: One gameContent created by"+Thread.currentThread().getId());
......
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