示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BubbleField"/> class.
 /// </summary>
 /// <param name="size">The size.</param>
 /// <param name="control">The control.</param>
 public BubbleField(int size, FieldControl control)
 {
     _control       = control;
     this.size      = size;
     storage        = new Bubble[size, size];
     MaxColorsCount = 6;
 }
示例#2
0
文件: GameScene.cs 项目: minskowl/MY
 /// <summary>
 /// Initializes a new instance of the <see cref="GameScene"/> class.
 /// </summary>
 /// <param name="gameStateManager">Game state manager the game state belongs to</param>
 public GameScene(GameBoxStateManager gameStateManager)
     : base(gameStateManager)
 {
     _field = new FieldControl
     {
         Bounds = { Location = new UniVector(25, 25) }
     };
     _field.EndGamge += ControlEndGamge;
     AddControl(_field);
 }
示例#3
0
文件: Bubble.cs 项目: minskowl/MY
 /// <summary>
 /// Initializes a new instance of the <see cref="Bubble"/> class.
 /// </summary>
 /// <param name="row">The row.</param>
 /// <param name="column">The column.</param>
 /// <param name="field">The field.</param>
 /// <param name="color">The color.</param>
 internal Bubble(int row, int column, FieldControl field, BubbleColor color)
 {
     _field  = field;
     Color   = color;
     Status  = BubbleStatus.Normal;
     _row    = row;
     _column = column;
     SetLocation();
     Bounds.Size = new UniVector(Size, Size);
 }