using System; using System.Collections.Generic; using System.Data.SqlTypes; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace CAPSTONE_4 { class Camera { public int camNum = -1; public Point camCenter = new Point(-1, -1); public Color camColor = new Color(); public Image camImage = new Image(); public bool camOn = new bool(); public Camera(int num, Point center) { camNum = num; camCenter = center; SetColor(); camOn = true; } void SetNum(int num) { camNum = num; SetColor(); } void SetCenter(Point center) { camCenter = center; } public void SetOn(bool on) { camOn = on; } public void SetColor() { switch (camNum % 6) { case 0: camColor.R = 0; camColor.G = 0; camColor.B = 127; break; case 1: camColor.R = 0; camColor.G = 127; camColor.B = 0; break; case 2: camColor.R = 127; camColor.G = 0; camColor.B = 0; break; case 3: camColor.R = 0; camColor.G = 63; camColor.B = 63; break; case 4: camColor.R = 63; camColor.G = 63; camColor.B = 0; break; case 5: camColor.R = 63; camColor.G = 0; camColor.B = 63; break; } } public void SetColor(Color color) { camColor = color; } public void SetImage(BitmapImage bimp) { camImage.Source = bimp; } } }