Exemplo n.º 1
0
        private void AddToSpecialMoveDictionary(Dictionary <PositionLayout, List <SpecialMove> > myDictionary, PositionLayout requiredPosition, ushort moveID, string specialName)
        {
            MoveData           move        = MoveDictionary.GetMove(moveID);
            SpecialMove        specialMove = new SpecialMove(move, specialName);
            List <SpecialMove> moves       = null;

            if (myDictionary.ContainsKey(requiredPosition))
            {
                moves = myDictionary [requiredPosition];
                moves.Add(specialMove);                  //We're adding to a reference, so we do not have to readd the list to the dictionary
                return;
            }

            moves = new List <SpecialMove> ();
            moves.Add(specialMove);
            myDictionary.Add(requiredPosition, moves);
        }
Exemplo n.º 2
0
 //Same as AttemptMove, but 2 times the damage
 public MoveResult AttemptSignature(Wrestler receivingWrestler, SpecialMove move)
 {
     //PositionLayout currentLayout = GetCurrentPositionLayout ();
     UseMomentum(SIGNATURE_MOMENTUM_COST);
     return(AttemptMove(receivingWrestler, move, 2));
 }
Exemplo n.º 3
0
 //Same as AttemptMove, but 4 times the damage (and risk)
 public MoveResult AttemptFinisher(Wrestler receivingWrestler, SpecialMove move)
 {
     UseMomentum(FINISHER_MOMENTUM_COST);
     return(AttemptMove(receivingWrestler, move, 4));
 }