Пример #1
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;
		}
Пример #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);
        }