Inheritance: IUnitFile
		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;
		}
Beispiel #2
0
        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);
        }
Beispiel #3
0
		public AlienSoldier(Type0File file,Palette p):base(file,p)
		{
			images=file;
		}
Beispiel #4
0
 public AlienSoldier(Type0File file, Palette p) : base(file, p)
 {
     images = file;
 }