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 Type0File(this,myPck.Count); myFile.ImageFile=myPck; } AlienSoldier a = new AlienSoldier((Type0File)myFile,p); a.Name = basename; return a; }
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 Type0File(this, myPck.Count); myFile.ImageFile = myPck; } AlienSoldier a = new AlienSoldier((Type0File)myFile, p); a.Name = basename; return(a); }
public AlienSoldier(Type0File file,Palette p):base(file,p) { images=file; }
public AlienSoldier(Type0File file, Palette p) : base(file, p) { images = file; }