Why UnitType is not enum?

0 views
Skip to first unread message

Panagiotis Peikidis

unread,
Jun 11, 2010, 7:58:07 PM6/11/10
to BWAPI JBridge
Is there any reason why the class UnitType is not an enum? Seems to me
that it is a perfect candidate for an enum.. I created a wrapper for
my project..

public enum MyType {
....
TERRAN_SCV(UnitType.TERRAN_SCV);

private UnitType type;
private MyType(UnitType type) {
this.type = type;
}
}
Reply all
Reply to author
Forward
0 new messages