Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package mightypork.rogue.world.item;
|
|
|
|
|
|
|
|
|
|
|
|
import mightypork.gamecore.util.annot.DefaultImpl;
|
|
|
|
import mightypork.gamecore.util.math.constraints.rect.proxy.RectBound;
|
|
|
|
|
|
|
|
|
|
|
|
public abstract class ItemModel {
|
|
|
|
|
|
|
|
public final int id;
|
|
|
|
|
|
|
|
|
|
|
|
public ItemModel(int id)
|
|
|
|
{
|
|
|
|
Items.register(id, this);
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return new tile with this model
|
|
|
|
*/
|
|
|
|
@DefaultImpl
|
|
|
|
public Item create()
|
|
|
|
{
|
|
|
|
return new Item(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public abstract void render(Item item, RectBound context);
|
|
|
|
|
|
|
|
}
|