Inheritance: IUnitFile
Esempio n. 1
0
		public override IUnit GetNewUnit(Palette p)
		{
			//if(myFile==null)
			//	myFile = new Type2File(this);

			if(myFile==null)
			{
				PckFile myPck;
				try
				{
					myPck = GameInfo.CachePck(basePath,basename,4,p);
				}
				catch
				{
					myPck = GameInfo.CachePck(basePath,basename,2,p);
				}
				myFile = new Type2File(this);
				myFile.ImageFile=myPck;
			}

			return new Type2Unit((Type2File)myFile,p);
		}
Esempio n. 2
0
        public override IUnit GetNewUnit(Palette p)
        {
            //if(myFile==null)
            //	myFile = new Type2File(this);

            if (myFile == null)
            {
                PckFile myPck;
                try
                {
                    myPck = GameInfo.CachePck(basePath, basename, 4, p);
                }
                catch
                {
                    myPck = GameInfo.CachePck(basePath, basename, 2, p);
                }
                myFile           = new Type2File(this);
                myFile.ImageFile = myPck;
            }

            return(new Type2Unit((Type2File)myFile, p));
        }
Esempio n. 3
0
 public Type2Unit(Type2File file, Palette p) : base(file, p)
 {
     images = file;
 }
Esempio n. 4
0
		public Type2Unit(Type2File file,Palette p):base(file,p)
		{
			images=file;
		}