/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java
ViewVC logotype

Diff of /miscJava/bukkit-minecraft-plugins/HoerupUtils/src/dk/thoerup/bukkit/hoeruputils/secretdoor/Door.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1603 by torben, Sun Jul 24 17:23:48 2011 UTC revision 1604 by torben, Tue Sep 27 18:27:54 2011 UTC
# Line 73  class Door { Line 73  class Door {
73    
74          }          }
75    
76    /*
77            @Deprecated
78          public Door(String input, Server server) {          public Door(String input, Server server) {
79                  String parts[] = input.split(":");                  String parts[] = input.split(":");
80    
# Line 88  class Door { Line 90  class Door {
90    
91                                    
92                  loadBlocks();                  loadBlocks();
93            }*/
94    
95            public Door(Location loc, int direction, int width, int height, String owner) {
96                    leftUpper = loc;
97                    this.direction = direction;
98                    this.width = width;
99                    this.height = height;
100                    this.owner = owner;
101    
102                    loadBlocks();
103          }          }
104    
105            
106    
107          public void powerChange(World world, int oldCurrent, int newCurrent ) {          public void powerChange(World world, int oldCurrent, int newCurrent ) {
108                  if (isPowered() == true) {                  if (isPowered() == true) {
109                          open();                          open();
# Line 151  class Door { Line 165  class Door {
165                                    
166          }          }
167    
168          public String toCsv() {  /*      public String toCsv() {
169                  StringBuilder sb = new StringBuilder();                  StringBuilder sb = new StringBuilder();
170                  sb.append( leftUpper.getWorld().getName() );                  sb.append( leftUpper.getWorld().getName() );
171    
# Line 168  class Door { Line 182  class Door {
182                  sb.append( ":" + owner);                  sb.append( ":" + owner);
183    
184                  return sb.toString();                  return sb.toString();
185          }          }*/
186    
187    
188          public void registerMap(Map<Location,Door> map) {          public void registerMap(Map<Location,Door> map) {
# Line 211  class Door { Line 225  class Door {
225                  return owner;                  return owner;
226          }          }
227    
228            public Location getLeftUpper() {
229                    return leftUpper;
230            }
231    
232            public int getWidth() {
233                    return width;
234            }
235    
236            public int getHeight() {
237                    return height;
238            }
239    
240            public int getDirection() {
241                    return direction;
242            }
243    
244  }  }

Legend:
Removed from v.1603  
changed lines
  Added in v.1604

  ViewVC Help
Powered by ViewVC 1.1.20