added echos for methods in ZPM and Wall classes
This commit is contained in:
		@@ -5,6 +5,10 @@ public class Wall extends Tile {
 | 
				
			|||||||
	private Stargate sg;
 | 
						private Stargate sg;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public void spawnStargate(Stargate stargate, Direction direction) {
 | 
						public void spawnStargate(Stargate stargate, Direction direction) {
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() +
 | 
				
			||||||
 | 
									"]" + ">" + Menu.tabulator + "Wall.spawnStargate(stargate," + direction.name() + ")");
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() +
 | 
				
			||||||
 | 
									"]" + "<" + Menu.tabulator + "Wall.spawnStargate()");
 | 
				
			||||||
		if(sg == null)
 | 
							if(sg == null)
 | 
				
			||||||
			sg = stargate;
 | 
								sg = stargate;
 | 
				
			||||||
		else return;
 | 
							else return;
 | 
				
			||||||
@@ -14,8 +18,16 @@ public class Wall extends Tile {
 | 
				
			|||||||
		sg = null;
 | 
							sg = null;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	public void onEntry() { }
 | 
						public void onEntry()
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onEntry()");
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onEntry()");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void onExit() {}
 | 
						public void onExit()
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "Wall.onExit()");
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "Wall.onExit()");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,10 @@ package cicaprojekt;
 | 
				
			|||||||
public class ZPM implements cicaprojekt.Pickable
 | 
					public class ZPM implements cicaprojekt.Pickable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public void pick() {}
 | 
						public void pick()
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + ">" + Menu.tabulator + "ZPM.pick()");
 | 
				
			||||||
 | 
							System.out.println("[" + ":" + this.getClass().getSimpleName() + "]" + "<" + Menu.tabulator + "ZPM.pick()");
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user