javaDoc in Settlement
This commit is contained in:
		
							parent
							
								
									187302afd5
								
							
						
					
					
						commit
						06382959b1
					
				| 
						 | 
				
			
			@ -2,9 +2,13 @@ package ch.zhaw.catan;
 | 
			
		|||
 | 
			
		||||
import java.awt.*;
 | 
			
		||||
 | 
			
		||||
//TODO Java Doc
 | 
			
		||||
/**
 | 
			
		||||
 * Sub Class of Structure and Super Class of City
 | 
			
		||||
 * Can be saved in Siedler Board on a corner
 | 
			
		||||
 */
 | 
			
		||||
public class Settlement extends Structure {
 | 
			
		||||
 | 
			
		||||
    //the coordinates of the position on the board
 | 
			
		||||
    private Point position;
 | 
			
		||||
 | 
			
		||||
    public Settlement(Config.Faction faction, Point position) {
 | 
			
		||||
| 
						 | 
				
			
			@ -12,6 +16,9 @@ public class Settlement extends Structure {
 | 
			
		|||
        this.position = position;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * @return the datafield position
 | 
			
		||||
     */
 | 
			
		||||
    public Point getPosition() {
 | 
			
		||||
        return position;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue