Exemplo n.º 1
0
 public LogicHandler()
 {
     saveGameHandler = new SaveGameHandler();
     transitionHandler = new TransitionHandler();
     movementHandler = new MovementHandler();
     objectHandler = new ObjectHandler();
     actionHandler = new ActionHandler();
     drawColor = Color.White;
 }
Exemplo n.º 2
0
        // should find some file and load from it
        public void loadGame(GameInit gameInit, ContentHandler content, TransitionHandler transitionHandler)
        {
            transitionHandler.createRegion(gameInit, content, 0, 0);

            gameInit.getParty().addPartyMember(gameInit.getCharacterFactory().createCharacter(0, 0));

            gameInit.getParty().getPartyMembers()[0].setXPosition(50);
            gameInit.getParty().getPartyMembers()[0].setYPosition(50);
            gameInit.getParty().getPartyMembers()[0].setHeight(2);
            gameInit.getParty().getPartyMembers()[0].setFacingDirection(0);
            gameInit.getFreeRoamState().getCurrentZone().addCharacter(gameInit.getParty().getPartyMembers()[0], 50, 50);
            gameInit.getMessageBlockFactory().createRegionCharacterBlocks(0);
            gameInit.getGameState().setFreeRoamState();
        }