2021-04-29 14:45:18 +00:00
|
|
|
package uulm.teamname.marvelous.gamelibrary.entities;
|
2021-04-29 14:40:23 +00:00
|
|
|
|
2021-04-29 14:45:18 +00:00
|
|
|
import uulm.teamname.marvelous.gamelibrary.IntVector2;
|
2021-04-29 14:40:23 +00:00
|
|
|
|
2021-04-30 18:54:34 +00:00
|
|
|
/** Represents an infinity stone {@link Entity}. Can only exist on the map. */
|
2021-04-29 14:40:23 +00:00
|
|
|
public class InfinityStone extends Entity {
|
2021-04-30 18:54:34 +00:00
|
|
|
/** The {@link StoneType} of the infinity stone */
|
2021-04-29 14:40:23 +00:00
|
|
|
public final StoneType type;
|
|
|
|
|
2021-04-30 18:54:34 +00:00
|
|
|
/**
|
|
|
|
* Constructs a new {@link InfinityStone}.
|
|
|
|
* @param id The {@link EntityID} of the stone
|
|
|
|
* @param position The position of the stone
|
|
|
|
* @param type The {@link StoneType} of the stone
|
2021-04-29 14:40:23 +00:00
|
|
|
*/
|
|
|
|
public InfinityStone(EntityID id, IntVector2 position, StoneType type) {
|
|
|
|
super(id, position);
|
|
|
|
this.type = type;
|
|
|
|
}
|
2021-04-30 19:48:28 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public InfinityStone clone() {
|
|
|
|
return new InfinityStone(id, position, type);
|
|
|
|
}
|
2021-04-29 14:40:23 +00:00
|
|
|
}
|