예제 #1
0
        //Generic constructor
        public FistsMatrix()
        {
            FistsMove Jab = new FistsMove("Jab", this.Jab);
            FistsMove Hook = new FistsMove("Hook", this.Hook);
            FistsMove UpperCut = new FistsMove("UpperCut", this.UpperCut);
            FistsMove Chop = new FistsMove("Chop", this.Chop);
            FistsMove JumpKick = new FistsMove("JumpKick", this.JumpKick);
            FistsMove SpinKick = new FistsMove("SpinKick", this.SpinKick);
            FistsMove SnapKick = new FistsMove("SnapKick", this.SnapKick);
            FistsMove LegSweep = new FistsMove("LegSweep", this.LegSweep);
            FistsMove Flip = new FistsMove("Flip", this.Flip);
            FistsMove ArmBlock = new FistsMove("ArmBlock", this.ArmBlock);
            FistsMove LegBlock = new FistsMove("LegBlock", this.LegBlock);
            FistsMove Dodge = new FistsMove("Dodge", this.Dodge);
            FistsMove Duck = new FistsMove("Duck", this.Duck);
            FistsMove Leap = new FistsMove("Leap", this.Leap);

            Matrix[0] = Jab;
            Matrix[1] = Hook;
            Matrix[2] = UpperCut;
            Matrix[3] = Chop;
            Matrix[4] = JumpKick;
            Matrix[5] = SpinKick;
            Matrix[6] = SnapKick;
            Matrix[7] = LegSweep;
            Matrix[8] = Flip;
            Matrix[9] = ArmBlock;
            Matrix[10] = LegBlock;
            Matrix[11] = Dodge;
            Matrix[12] = Duck;
            Matrix[13] = Leap;
        }
예제 #2
0
        //Generic constructor
        public FistsMatrix()
        {
            FistsMove Jab      = new FistsMove("Jab", this.Jab);
            FistsMove Hook     = new FistsMove("Hook", this.Hook);
            FistsMove UpperCut = new FistsMove("UpperCut", this.UpperCut);
            FistsMove Chop     = new FistsMove("Chop", this.Chop);
            FistsMove JumpKick = new FistsMove("JumpKick", this.JumpKick);
            FistsMove SpinKick = new FistsMove("SpinKick", this.SpinKick);
            FistsMove SnapKick = new FistsMove("SnapKick", this.SnapKick);
            FistsMove LegSweep = new FistsMove("LegSweep", this.LegSweep);
            FistsMove Flip     = new FistsMove("Flip", this.Flip);
            FistsMove ArmBlock = new FistsMove("ArmBlock", this.ArmBlock);
            FistsMove LegBlock = new FistsMove("LegBlock", this.LegBlock);
            FistsMove Dodge    = new FistsMove("Dodge", this.Dodge);
            FistsMove Duck     = new FistsMove("Duck", this.Duck);
            FistsMove Leap     = new FistsMove("Leap", this.Leap);

            Matrix[0]  = Jab;
            Matrix[1]  = Hook;
            Matrix[2]  = UpperCut;
            Matrix[3]  = Chop;
            Matrix[4]  = JumpKick;
            Matrix[5]  = SpinKick;
            Matrix[6]  = SnapKick;
            Matrix[7]  = LegSweep;
            Matrix[8]  = Flip;
            Matrix[9]  = ArmBlock;
            Matrix[10] = LegBlock;
            Matrix[11] = Dodge;
            Matrix[12] = Duck;
            Matrix[13] = Leap;
        }
예제 #3
0
        //This service should only be used on qualified and validated objects
        //The index of the dictionary in FistMoveAbbreviations 
        int CompareTo(FistsMove compare)
        {
            int compareIndex = FistMoveAbbreviations.getMoveIndexFromName(compare.name);
            Console.WriteLine("Comparing " + this.name + " to " + compare.name + " ( " + this.outcomes[compareIndex] + " ) ");

            if (outcomes[compareIndex] < 0)
                return -1;
            if (outcomes[compareIndex] > 0)
                return 1;
            else
                return 0;
        }
예제 #4
0
        //This service should only be used on qualified and validated objects
        //The index of the dictionary in FistMoveAbbreviations
        int CompareTo(FistsMove compare)
        {
            int compareIndex = FistMoveAbbreviations.getMoveIndexFromName(compare.name);

            Console.WriteLine("Comparing " + this.name + " to " + compare.name + " ( " + this.outcomes[compareIndex] + " ) ");

            if (outcomes[compareIndex] < 0)
            {
                return(-1);
            }
            if (outcomes[compareIndex] > 0)
            {
                return(1);
            }
            else
            {
                return(0);
            }
        }