Package fm.ak.client.object

Examples of fm.ak.client.object.Region


    @Override
    final protected void render() {
        //System.out.println("render Viewport");
        justify();
       
        Region r;
        if ( (r = Local.Regions.get(Local.Self.tile.rid)) != null  &&  r.type == 1 ) {
            if (scaleshade > 0.50f) {
                scaleshade -= 0.01f;
            }
        } else {
            scaleshade = 1;
        }

        // reposition the building label
        if ( buildingLabel != null ) {

            if ( ! buildingLabel.isActive() ) {
                buildingLabel = null;
            } else {

                r = Local.Regions.get(Local.Self.tile.rid);

                if ( r != null ) {
                    buildingLabel.visibile = true;
                    buildingLabel.setX(r.getOnscreenX());
                    buildingLabel.setY(r.getOnscreenY() - buildingLabel.getFont().getMetrics().Height);
                }
            }
        }
       
        for ( Tile t : Local.TilesByPos.values() ) {
View Full Code Here


        if ( getMarked() == null ) {
            return;
        }

        Entity e;
        Region r;
        for (int d = 0; d < 4; d++) {
            if ( getMarked().at(d) == Local.Self.tile ) {

                if ((r = Local.Regions.get(getMarked().rid)) != null && r.type == 1 && r.id != Local.Self.tile.rid
                        && !((e = Local.Entities.get(getMarked().id)) != null && e.getType() == Entity.Type.DOOR && e.parama == d)
View Full Code Here

TOP

Related Classes of fm.ak.client.object.Region

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.