示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        public static BoardSoupEngine getInstance()
        {
            if (instance == null)
            {
                instance = new BoardSoupEngine();
            }

            return(instance);
        }