mirror of
				https://github.com/inf112-v20/Fiasko.git
				synced 2025-11-03 03:03:43 +01:00 
			
		
		
		
	Made documentation for BoardElementContainer.java
This commit is contained in:
		@@ -2,19 +2,36 @@ package inf112.fiasko.roborally.objects;
 | 
			
		||||
 | 
			
		||||
import inf112.fiasko.roborally.element_properties.Position;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * This class represents a type of object and its position
 | 
			
		||||
 * @param <K> The type of object
 | 
			
		||||
 */
 | 
			
		||||
public class BoardElementContainer <K>{
 | 
			
		||||
    K obj;
 | 
			
		||||
    Position pos;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Initializes the BoardElementContainer
 | 
			
		||||
     * @param obj The object
 | 
			
		||||
     * @param pos The position
 | 
			
		||||
     */
 | 
			
		||||
    BoardElementContainer(K obj, Position pos) {
 | 
			
		||||
        this.obj = obj;
 | 
			
		||||
        this.pos = pos;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets the object
 | 
			
		||||
     * @return object
 | 
			
		||||
     */
 | 
			
		||||
    public K getObject() {
 | 
			
		||||
        return obj;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Gets the position
 | 
			
		||||
     * @return position
 | 
			
		||||
     */
 | 
			
		||||
    public Position getPosition() {
 | 
			
		||||
        return pos;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user