public BoardObject(String argName) // TODO: add board dimensions to this, pass board dimensions to event and eventually to board - needed for quad tree { name = argName; CreateInternalBoardEvent e = new CreateInternalBoardEvent(this); dispatcher = BoardSoupEngine.getInstance().getInternalDispatcher(); dispatcher.submitEvent(e); }
public ActorObject(int x, int y, String actorName, AssetType argType) { name = actorName; dispatcher = BoardSoupEngine.getInstance().getInternalDispatcher(); CreateInternalBoardActorEvent e = new CreateInternalBoardActorEvent(this, x, y, name, new AssetDetails(argType)); dispatcher.submitEvent(e); }