WallDrawer.java added
This commit is contained in:
		
							
								
								
									
										29
									
								
								cicaprojekt/WallDrawer.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								cicaprojekt/WallDrawer.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| package cicaprojekt; | ||||
|  | ||||
| public class WallDrawer extends ImagePanel implements Drawer { | ||||
|  | ||||
|     Wall wall; | ||||
|   | ||||
|     public WallDrawer(Wall w) { | ||||
|         super("Wall.png"); | ||||
|         wall = w; | ||||
|         setVisible(false); | ||||
|     } | ||||
|   | ||||
|     @Override | ||||
|     public void draw() { | ||||
|         setVisible(true); | ||||
|          | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int getX() { | ||||
|         return wall.getX(); | ||||
|     } | ||||
|      | ||||
|     @Override | ||||
|     public int getY() { | ||||
|         return wall.getY(); | ||||
|     } | ||||
|      | ||||
| } | ||||
		Reference in New Issue
	
	Block a user