public Pistol(Texture2D pistolImage, Vector2 startPos, int clipSize, Projectile aProjectile) : base(pistolImage, startPos, clipSize,aProjectile) { myImage = pistolImage; myImagePos = startPos; myClipSize = clipSize; myProjectile = aProjectile; myWeaponState = new ShownState(this); }
public PopUpStateEngine( IConstArg arg ) { thisProcessFactory = arg.processFactory; thisImplementor = arg.implementor; thisProcessTime = arg.processTime; State.IConstArg stateArg = new State.ConstArg( this, arg.implementor ); thisHiddenState = new HiddenState(stateArg); thisHidingState = new HidingState(stateArg); thisShownState = new ShownState(stateArg); thisShowingState = new ShowingState(stateArg); thisCurState = thisHiddenState; }