mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-08 19:19:35 +01:00
EpicKnarvik97
a0ba1511b3
Endrer IInteractabaleGame til InteractableGame Endrer IDrawableGame til DrawableGame Endrer IDeck til Deck Endrer IGrid til Grid Endrer Grid til ListGrid Endrer Deck til AbstractDeck Endrer PowerdownContainer til PowerDownContainer Endrer GridTest til ListGridTest Kjører IntelliJ sin automatiske reformatering for å fikse formateringsfeil
43 lines
860 B
Java
43 lines
860 B
Java
package inf112.fiasko.roborally.objects;
|
|
|
|
import inf112.fiasko.roborally.elementproperties.Position;
|
|
|
|
/**
|
|
* This class represents a board element and its position
|
|
*
|
|
* @param <K> The type of element
|
|
*/
|
|
public class BoardElementContainer<K> {
|
|
private final K element;
|
|
private final Position position;
|
|
|
|
/**
|
|
* Initializes the BoardElementContainer
|
|
*
|
|
* @param element The element
|
|
* @param position The position
|
|
*/
|
|
BoardElementContainer(K element, Position position) {
|
|
this.element = element;
|
|
this.position = position;
|
|
}
|
|
|
|
/**
|
|
* Gets the element
|
|
*
|
|
* @return The element
|
|
*/
|
|
public K getElement() {
|
|
return element;
|
|
}
|
|
|
|
/**
|
|
* Gets the position
|
|
*
|
|
* @return The position
|
|
*/
|
|
public Position getPosition() {
|
|
return position;
|
|
}
|
|
}
|