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.
52 lines
867 B
52 lines
867 B
package mightypork.rogue.world.entity;
|
|
|
|
|
|
import mightypork.utils.annotations.DefaultImpl;
|
|
import mightypork.utils.interfaces.Updateable;
|
|
import mightypork.utils.ion.IonBundled;
|
|
import mightypork.utils.ion.IonDataBundle;
|
|
|
|
|
|
/**
|
|
* Abstract entity module<br>
|
|
* Modules make up an entity AI and behavior.
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public abstract class EntityModule implements IonBundled, Updateable {
|
|
|
|
protected final Entity entity;
|
|
|
|
|
|
public EntityModule(Entity entity)
|
|
{
|
|
this.entity = entity;
|
|
}
|
|
|
|
|
|
/**
|
|
* @return whether the module should be saved into a world file
|
|
*/
|
|
public abstract boolean isModuleSaved();
|
|
|
|
|
|
@Override
|
|
@DefaultImpl
|
|
public void load(IonDataBundle bundle)
|
|
{
|
|
}
|
|
|
|
|
|
@Override
|
|
@DefaultImpl
|
|
public void save(IonDataBundle bundle)
|
|
{
|
|
}
|
|
|
|
|
|
@Override
|
|
@DefaultImpl
|
|
public void update(double delta)
|
|
{
|
|
}
|
|
}
|
|
|