Package cz.cuni.mff.abacs.burglar.logics.objects.positions

Examples of cz.cuni.mff.abacs.burglar.logics.objects.positions.Lockable


        this._selectedObjects = this._parent._map.getObjectsOnPosition(mapX, mapY);
        for(BaseObject object : this._selectedObjects){
          switch(object.getType()){
          case CONTAINER:
          case DOOR:
            Lockable lockable = (Lockable)object;
            if(lockable.isClosed()){
              // it can be opened, locked, or unlocked:
              if(lockable.isLocked()){
                // it can be only unlocked:
                this._lockButton.setText(STR_UNLOCK + " (" + Player.PENALTY_OBJECT_LOCKED + ")");
                this._buttons.add(this._lockButton);
              }else{
                // it can be locked, or opened:
View Full Code Here

TOP

Related Classes of cz.cuni.mff.abacs.burglar.logics.objects.positions.Lockable

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.