public override IUnit GetNewUnit(Palette p) { //if(myFile==null) // myFile = new Type1File(this); if(myFile==null) { PckFile myPck; try { myPck = GameInfo.CachePck(basePath,basename,4,p); } catch { myPck = GameInfo.CachePck(basePath,basename,2,p); } myFile = new Type1File(this); myFile.ImageFile=myPck; } return new Type1Unit((Type1File)myFile,p); }
public Type1Unit(Type1File file, Palette p) : base(file, p) { images = file; //curr = DXTimer.RandInt()%bob.Length; }
public Type1Unit(Type1File file,Palette p):base(file,p) { images=file; //curr = DXTimer.RandInt()%bob.Length; }