package ch.asynk.rustanddust.game; import ch.asynk.rustanddust.engine.util.Collection; import ch.asynk.rustanddust.engine.util.IterableArray; import ch.asynk.rustanddust.engine.Pawn; public class UnitList extends IterableArray { public UnitList(int n) { super(n); } @SuppressWarnings("unchecked") public Collection asPawns() { return (Collection) this; } }