예제 #1
0
        private void DrawFlame(Context context, FieldCell cell)
        {
            int x = cell.GetCx() * cellWidth;
            int y = cell.GetCy() * cellHeight;

            context.FillRect(x, y, cellWidth, cellHeight, Color.Red);
        }
예제 #2
0
 public void AddCell(FieldCell cell)
 {
     cells.Add(cell.GetCx(), cell.GetCy(), cell);
     if (cell.IsMovable())
     {
         AddMovable(cell.AsMovable());
     }
 }
예제 #3
0
 public void AddCell(FieldCell cell)
 {
     cells.Add(cell.GetCx(), cell.GetCy(), cell);
     if (cell.IsMovable())
     {
         AddMovable(cell.AsMovable());
     }
 }
 private void DrawFlame(Context context, FieldCell cell)
 {
     int x = cell.GetCx() * cellWidth;
     int y = cell.GetCy() * cellHeight;
     context.FillRect(x, y, cellWidth, cellHeight, Color.Red);
 }
 private void DrawCellRect(Context context, FieldCell cell, Color color)
 {
     DrawCellRect(context, cell.GetCx(), cell.GetCy(), color);
 }
예제 #6
0
 private void DrawCellRect(Context context, FieldCell cell, Color color)
 {
     DrawCellRect(context, cell.GetCx(), cell.GetCy(), color);
 }