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