package game.actors;
import engine.geometry.Polygon;
import engine.geometry.Rectangle;
import engine.hierarchy.DefaultActor;
import game.habits.DynamicHabit;
import game.habits.MetalHabit;
import game.habits.StaticHabit;
public class MetalActor extends DefaultActor {
Polygon bounds;
public MetalActor(final Rectangle bounds) {
this.bounds = bounds.toPolygon();
}
@Override
protected void onAdd() {
DynamicHabit dynamic = addHabit(new StaticHabit(bounds));
addHabit(new MetalHabit(dynamic));
}
}