Package ru.shalnov.pacman.protocol

Examples of ru.shalnov.pacman.protocol.Map


        /////////////

        //width, height, density, min step
        System.out.println("Generate map...");
        MapGenerator mapGen = new MapGenerator(20, 10, 0.44, 3);
        Map map = mapGen.generateMap();

        MapUI mapUI = new MapUI();
        mapUI.create(map, -1);

        System.out.println("success");
        Game game = new Game(map, mapUI);
        map.print();

        GameServerRegistrator registrator = new GameServerRegistrator(game);
        Thread registratorThread = new Thread(registrator);
        registratorThread.start();
View Full Code Here


        setDensity(density);
        setStepLength(stepLength);
    }

    public Map generateMap() {
        mMap = new Map(mWidth, mHeight);
        int numberPassables = (int) (mHeight * mWidth * mDensity);
        //before route generating
        //drawing border
        for (int i = 0; i < mHeight; i++) {
            mMap.setPassable(0, i, true);
View Full Code Here

TOP

Related Classes of ru.shalnov.pacman.protocol.Map

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.