mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
Made documentation for BoardElementContainer.java
This commit is contained in:
parent
0e9c581a70
commit
ca86b3fe55
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user