/// <summary> /// Returnt de normale texture van een object. /// </summary> public static Texture2D GetNormaal(ApparaatType type) { switch (type) { case ApparaatType.Laptop: return LaptopNormaal; case ApparaatType.Modem: return ModemNormaal; case ApparaatType.Pc: return PcNormaal; case ApparaatType.Router: return RouterNormaal; case ApparaatType.Server: return ServerNormaal; case ApparaatType.Switch: return SwitchNormaal; } return null; }
/// <summary> /// Returnt de geselecteerde texture van een object. /// </summary> public static Texture2D GetGeselecteerd(ApparaatType type) { switch (type) { case ApparaatType.Laptop: return LaptopGeselecteerd; case ApparaatType.Modem: return ModemGeselecteerd; case ApparaatType.Pc: return PcGeselecteerd; case ApparaatType.Router: return RouterGeselecteerd; case ApparaatType.Server: return ServerGeselecteerd; case ApparaatType.Switch: return SwitchGeselecteerd; } return null; }
public static void AddNetwerkApparaat(ApparaatType type, Vector2 positie) { Apparatuur.Add(new NetwerkApparaat(type, positie)); }
public static void AddComputer(ApparaatType type, int firewall, int antivirus, int x, int y) { Apparatuur.Add(new Computer(type, firewall, antivirus, new Vector2(x, y))); }
public static void AddComputer(ApparaatType type, int firewall, int antivirus, Vector2 positie) { Apparatuur.Add(new Computer(type, firewall, antivirus, positie)); }