Inheritance: IUnitFile
示例#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 Type7File(this);
                myFile.ImageFile = myPck;
            }

            return(new Type7Unit((Type7File)myFile, p));
        }
示例#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 Type7File(this);
				myFile.ImageFile=myPck;
			}
            
			return new Type7Unit((Type7File)myFile,p);
		}
示例#3
0
 public Type7Unit(Type7File file, Palette p) : base(file, p)
 {
     images = file;
     //curr = DXTimer.RandInt()%8;
     big = true;
 }
示例#4
0
		public Type7Unit(Type7File file,Palette p):base(file,p)
		{
			images=file;
			//curr = DXTimer.RandInt()%8;
			big=true;
		}