Beispiel #1
0
 public CharacterHitProfile(CharacterHitProfile originalHitProfile)
 {
     head     = originalHitProfile.head;
     body     = originalHitProfile.body;
     leftArm  = originalHitProfile.leftArm;
     rightArm = originalHitProfile.rightArm;
     leftLeg  = originalHitProfile.leftLeg;
     rightLeg = originalHitProfile.rightLeg;
 }
Beispiel #2
0
    //hit profile 0, hit profile 1 -> sum hit profile
    CharacterHitProfile SumHitProfiles(CharacterHitProfile hotProfile, CharacterHitProfile otherProfile)
    {
        hotProfile.head     += otherProfile.head;
        hotProfile.body     += otherProfile.body;
        hotProfile.leftArm  += otherProfile.leftArm;
        hotProfile.rightArm += otherProfile.rightArm;
        hotProfile.leftLeg  += otherProfile.leftLeg;
        hotProfile.rightLeg += otherProfile.rightLeg;

        return(hotProfile);
    }