Beispiel #1
0
        public void assign()
        {
            dic           = new Dictionary <IPowerUp, int>();
            track         = new Dictionary <int, IPowerUp>();
            pBlock        = new PBlock();
            pChangeNumber = new PChangeNumber();
            pFreeze       = new PFreeze();
            pNone         = new PNone();
            pShow         = new PShow();
            pShuffle      = new PShuffle();
            pShuffleAll   = new PShuffleAll();
            dic.Add(pBlock, 2);
            dic.Add(pChangeNumber, 2);
            dic.Add(pFreeze, 2);
            dic.Add(pNone, 2);
            dic.Add(pShow, 2);
            dic.Add(pShuffle, 2);
            dic.Add(pShuffleAll, 2);

            track.Add(pBlock.getProbability(), pBlock);
            track.Add(pChangeNumber.getProbability(), pChangeNumber);
            track.Add(pFreeze.getProbability(), pFreeze);
            track.Add(pNone.getProbability(), pNone);
            track.Add(pShow.getProbability(), pShow);
            track.Add(pShuffle.getProbability(), pShuffle);
            track.Add(pShuffleAll.getProbability(), pShuffleAll);
        }