Beispiel #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);
        }
Beispiel #2
0
 public void AddCell(FieldCell cell)
 {
     cells.Add(cell.GetCx(), cell.GetCy(), cell);
     if (cell.IsMovable())
     {
         AddMovable(cell.AsMovable());
     }
 }
 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);
 }
Beispiel #6
0
 private void DrawCellRect(Context context, FieldCell cell, Color color)
 {
     DrawCellRect(context, cell.GetCx(), cell.GetCy(), color);
 }