Made documentation for BoardElementContainer.java

This commit is contained in:
GabrielMagnus 2020-03-12 11:15:03 +01:00
parent 0e9c581a70
commit ca86b3fe55

View File

@ -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;
}