Exemple #1
0
        private void addPatternButton_Click(object sender, EventArgs e)
        {
            _levels[currLevel].formationActionNames[currFormation].Add(_levels[currLevel].formationActionNames[currFormation][currPatternAction]);

            PatternAction action = new PatternAction(new List<int>(4), _levels[currLevel].formationActions[currFormation][currPatternAction].duration);
            foreach (int i in _levels[currLevel].formationActions[currFormation][currPatternAction].actions)
                action.addAction(i);

            _levels[currLevel].formationActions[currFormation].Add(action);

            refreshPatternListBox();
        }
Exemple #2
0
        public PatternAction copy()
        {
            PatternAction copy = new PatternAction();
            copy.duration = duration;

            foreach (int action in actions)
                copy.addAction(action);

            return copy;
        }