Exemplo n.º 1
0
 public BucketBubbleQueue(LevelState state, BubbleQueueDefinition definition) : base(state)
 {
     queueDefinition = definition;
     SetCurrentBucket();
     RemoveTypes(GetEliminatedTypes());
     BuildQueue();
 }
Exemplo n.º 2
0
        public void Start()
        {
            queue = manipulator.Queue;
            queue.AddListener(OnQueueChanged);

            moveCountField.onEndEdit.AddListener(OnMoveCountEndEdit);

            Initialize();
        }
    override protected BubbleQueue GetBubbleQueue(LevelState levelState)
    {
        var definition = new BubbleQueueDefinition();

        for (var x = 1; x < 3; x++)
        {
            var bucket = new BubbleQueueDefinition.Bucket(1, 1, 1, 1, 1, 1);
            bucket.length = x * 5;
            definition.buckets.Add(bucket);
        }

        definition.extras = new BubbleQueueDefinition.Bucket(1, 1, 1, 1, 1, 1);
        return(new BucketBubbleQueue(levelState, definition));
    }
 public static BubbleQueue GetBubbleQueue(BubbleQueueType queueType,
                                          LevelState levelState,
                                          BubbleQueueDefinition definition)
 {
     return(typeMap[queueType](new QueueData(levelState, definition)));
 }
 public QueueData(LevelState state, BubbleQueueDefinition definition)
 {
     levelState            = state;
     bubbleQueueDefinition = definition;
 }