Exemple #1
0
        public HitInfo(HitInfoBase other) : base(other)
        {
            if (other.GetType() != typeof(HitInfo) &&
                other.GetType().IsSubclassOf(typeof(HitInfo)) == false)
            {
                return;
            }
            HitInfo otherHitInfo = (HitInfo)other;

            knockdown = otherHitInfo.knockdown;

            groundBounces     = otherHitInfo.groundBounces;
            groundBounceForce = otherHitInfo.groundBounceForce;
            wallBounces       = otherHitInfo.wallBounces;
            wallBounceForce   = otherHitInfo.wallBounceForce;

            damageOnHit  = otherHitInfo.damageOnHit;
            airOnly      = otherHitInfo.airOnly;
            groundOnly   = otherHitInfo.groundOnly;
            causesTumble = otherHitInfo.causesTumble;

            opponentForce = otherHitInfo.opponentForce;

            forceIncludeYForce      = otherHitInfo.forceIncludeYForce;
            opponentForceMultiplier = otherHitInfo.opponentForceMultiplier;
            opponentMinMagnitude    = otherHitInfo.opponentMinMagnitude;
            opponentMaxMagnitude    = otherHitInfo.opponentMaxMagnitude;
            pushPullCenterOffset    = otherHitInfo.pushPullCenterOffset;
        }
 public HurtInfo3D(HitInfoBase hitInfo, Vector3 center, Vector3 forward, Vector3 right)
 {
     this.hitInfo = hitInfo;
     this.center  = center;
     this.forward = forward;
     this.right   = right;
 }
 public HurtInfo2D(HitInfoBase hitInfo, Vector2 attackerVelocity, Vector2 center, int faceDirection)
 {
     this.attackerVelocity = attackerVelocity;
     this.hitInfo          = hitInfo;
     this.center           = center;
     this.faceDirection    = faceDirection;
 }
Exemple #4
0
 public HitboxGroup(HitboxGroup other)
 {
     ID = other.ID;
     activeFramesStart = other.activeFramesStart;
     activeFramesEnd   = other.activeFramesEnd;
     attachToEntity    = other.attachToEntity;
     chargeLevelNeeded = other.chargeLevelNeeded;
     chargeLevelMax    = other.chargeLevelMax;
     if (other.hitboxHitInfo.GetType() == typeof(HitInfo))
     {
         hitboxHitInfo = new HitInfo((HitInfo)other.hitboxHitInfo);
     }
     boxes = new List <BoxDefinitionBase>();
 }
Exemple #5
0
 public HurtInfoBase(HitInfoBase hitInfo)
 {
     this.hitInfo = hitInfo;
 }