package com.ggj.game;

import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.utils.Array;

public class ObjectController {
  protected static synchronized int register(Actor actor) {
    objects.add(actor);
    
    return ++objectId;
  }
  
  private static int objectId = 0;
  private static Array<Actor> objects = new Array<Actor>();
}

@@ -98,16 +98,45 @@
 s.Array;
+%0Aimport com.ggj.model.Player;
 %0A%0Apublic
@@ -280,16 +280,210 @@
 %0A  %7D%0A  %0A
+  protected static Player getPlayer()%0A  %7B%0A    for(Actor actor : objects)%0A    %7B%0A      if(actor instanceof Player)%0A      %7B%0A        return (Player)actor;%0A      %7D%0A    %7D%0A    %0A    return null;%0A  %7D%0A  %0A
   privat

Add method to get player from ObjectController