var ret:Item; //Base class for Ring, Weapon, and Armor
switch(type)
{ case 1: ret = new Ring(iType,Blessing); case 2: ret = new Weapon(iType, Blessing); case 3: ret = new Armor(iType, Blessing); default: ret = new Item(iType, Blessing); } }while (!MenuPrompter.IsCorrect(ret.name()));
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haxelang+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Oh right, that's much more sensible. Thanks for pointing out my obvious omission :)