Inheritance: IUnitFile
Example #1
0
		public override IUnit GetNewUnit(Palette p)
		{
			//if(myFile==null)
			//	myFile = new Type1File(this);

			if(myFile==null)
			{
				PckFile myPck;
				try
				{
					myPck = GameInfo.CachePck(basePath,basename,4,p);
				}
				catch
				{
					myPck = GameInfo.CachePck(basePath,basename,2,p);
				}
				myFile = new Type1File(this);
				myFile.ImageFile=myPck;
			}
			
			return new Type1Unit((Type1File)myFile,p);
		}
Example #2
0
        public Type1Unit(Type1File file, Palette p) : base(file, p)
        {
            images = file;

            //curr = DXTimer.RandInt()%bob.Length;
        }
Example #3
0
		public Type1Unit(Type1File file,Palette p):base(file,p)
		{
			images=file;

			//curr = DXTimer.RandInt()%bob.Length;
		}