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

            return(new HumanSoldier1((Type4File)myFile, p));
        }
		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 Type4File(this);
				myFile.ImageFile=myPck;
			}
			
			return new HumanSoldier1((Type4File)myFile,p);
		}
Beispiel #3
0
/*
		private const int LeftArmStill = 0;
		private const int RightArmStill = 8;
		private const int LegsStillStand=16;
		private const int LegsStillCrouch=24;
		private const int UnderwaterHead = 32;
		private const int LeftArmMove = 40;
		private const int RightArmMove = 48;
		private const int LegsMove = 56;

		private const int LeftArmArmed2 = 232;
		private const int RightArmArmed2 = 240;
		private const int RightArmArmed1 = 248;

		private const int DeathFrames = 3;
		private const int DeathAboveWater = 256;
		private const int DeathUnderWater = 259;

		private const int FemaleHead = 262;
		private const int MaleHead = 270;
		private const int ZombieHead = 278;*/
		#endregion

		public HumanSoldier1(Type4File file,Palette p):base(file,p)
		{
			images=file;
		}
Beispiel #4
0
 public HumanSoldier2(Type4File file, Palette p) : base(file, p)
 {
     images = file;
 }