mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Lagt til BoardElementContainer.java
This commit is contained in:
parent
7a5b4fccd2
commit
b03270203e
@ -0,0 +1,21 @@
|
||||
package inf112.fiasko.roborally.objects;
|
||||
|
||||
import inf112.fiasko.roborally.element_properties.Position;
|
||||
|
||||
public class BoardElementContainer <K>{
|
||||
K obj;
|
||||
Position pos;
|
||||
|
||||
BoardElementContainer(K obj, Position pos) {
|
||||
this.obj = obj;
|
||||
this.pos = pos;
|
||||
}
|
||||
|
||||
public K getObject() {
|
||||
return obj;
|
||||
}
|
||||
|
||||
public Position getPosition() {
|
||||
return pos;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user