|
| 1 | +// Visual Pinball Engine |
| 2 | +// Copyright (C) 2021 freezy and VPE Team |
| 3 | +// |
| 4 | +// This program is free software: you can redistribute it and/or modify |
| 5 | +// it under the terms of the GNU General Public License as published by |
| 6 | +// the Free Software Foundation, either version 3 of the License, or |
| 7 | +// (at your option) any later version. |
| 8 | +// |
| 9 | +// This program is distributed in the hope that it will be useful, |
| 10 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +// GNU General Public License for more details. |
| 13 | +// |
| 14 | +// You should have received a copy of the GNU General Public License |
| 15 | +// along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 | + |
| 17 | +// ReSharper disable StringLiteralTypo |
| 18 | + |
| 19 | +using System; |
| 20 | +using VisualPinball.Engine.Game.Engines; |
| 21 | +using VisualPinball.Engine.PinMAME.MPUs; |
| 22 | + |
| 23 | +namespace VisualPinball.Engine.PinMAME.Games |
| 24 | +{ |
| 25 | + [Serializable] |
| 26 | + public class Rock : System80 |
| 27 | + { |
| 28 | + public override string Name => "Rock"; |
| 29 | + public override string Id => "rock"; |
| 30 | + public override int Year => 1985; |
| 31 | + public override string Manufacturer => "Premier"; |
| 32 | + public override int IpdbId => 1978; |
| 33 | + |
| 34 | + public override PinMameRom[] Roms { get; } = { |
| 35 | + new PinMameRom("rock"), |
| 36 | + new PinMameRom("rockfp", description: "Free Play"), |
| 37 | + new PinMameRom("rockg", language: PinMameRomLanguage.German), |
| 38 | + new PinMameRom("rockgfp", description: "Free Play", language: PinMameRomLanguage.German), |
| 39 | + }; |
| 40 | + |
| 41 | + protected override GamelogicEngineSwitch[] Switches { get; } = { |
| 42 | + new GamelogicEngineSwitch("40") { Description = "#1 Drop Target (Upper)" }, |
| 43 | + new GamelogicEngineSwitch("41") { Description = "10 Point (2)" }, |
| 44 | + new GamelogicEngineSwitch("42") { Description = "Right Flipper (Lower)" }, |
| 45 | + new GamelogicEngineSwitch("43") { Description = "Rollunder" }, |
| 46 | + new GamelogicEngineSwitch("44") { Description = "Right Outside Rollover" }, |
| 47 | + new GamelogicEngineSwitch("45") { Description = "Right Spinner (with Bracket)" }, |
| 48 | + new GamelogicEngineSwitch("46") { Description = "Right Top Rollover" }, |
| 49 | + new GamelogicEngineSwitch("50") { Description = "#2 Drop Target (Upper)" }, |
| 50 | + new GamelogicEngineSwitch("51") { Description = "#1 Drop Target (Lower)" }, |
| 51 | + new GamelogicEngineSwitch("52") { Description = "Spot Target (with Bracket)" }, |
| 52 | + new GamelogicEngineSwitch("53") { Description = "#1 Top Rollover" }, |
| 53 | + new GamelogicEngineSwitch("54") { Description = "Right Return Rollover" }, |
| 54 | + new GamelogicEngineSwitch("55") { Description = "Right Side Rollover" }, |
| 55 | + new GamelogicEngineSwitch("57") { Description = "Tilt (with Bracket)" }, |
| 56 | + new GamelogicEngineSwitch("60") { Description = "#3 Drop Targer (Upper)" }, |
| 57 | + new GamelogicEngineSwitch("61") { Description = "#2 Drop Targer (Lower)" }, |
| 58 | + new GamelogicEngineSwitch("62") { Description = "#4 Drop Targer (Lower)" }, |
| 59 | + new GamelogicEngineSwitch("63") { Description = "#2 Top Rollover" }, |
| 60 | + new GamelogicEngineSwitch("64") { Description = "Left Return Rollover" }, |
| 61 | + new GamelogicEngineSwitch("65") { Description = "Left Side Rollover" }, |
| 62 | + new GamelogicEngineSwitch("67") { Description = "Outhole (Assembly)", DeviceHint = "^Trough\\s*\\d?", DeviceItemHint = "drain_switch" }, |
| 63 | + new GamelogicEngineSwitch("70") { Description = "#4 Drop Targer (Upper)" }, |
| 64 | + new GamelogicEngineSwitch("71") { Description = "#3 Drop Targer (Lower)" }, |
| 65 | + new GamelogicEngineSwitch("72") { Description = "#5 Drop Targer (Lower)" }, |
| 66 | + new GamelogicEngineSwitch("73") { Description = "#3 Top Rollover" }, |
| 67 | + new GamelogicEngineSwitch("74") { Description = "Left Outside Rollover" }, |
| 68 | + new GamelogicEngineSwitch("75") { Description = "Left Spinner (with Bracket)" }, |
| 69 | + new GamelogicEngineSwitch("76") { Description = "Left Top Rollover" }, |
| 70 | + }; |
| 71 | + |
| 72 | + public override GamelogicEngineLamp[] AvailableLamps { get; } = { |
| 73 | + new GamelogicEngineLamp("03") { Description = "Shoot Again" }, |
| 74 | + new GamelogicEngineLamp("05") { Description = "#1 Drop Target (Upper)" }, |
| 75 | + new GamelogicEngineLamp("06") { Description = "#2 Drop Target (Upper)" }, |
| 76 | + new GamelogicEngineLamp("07") { Description = "#3 Drop Target (Upper)" }, |
| 77 | + new GamelogicEngineLamp("08") { Description = "#4 Drop Target (Upper)" }, |
| 78 | + new GamelogicEngineLamp("09") { Description = "Level 1" }, |
| 79 | + new GamelogicEngineLamp("10") { Description = "Level 2" }, |
| 80 | + new GamelogicEngineLamp("11") { Description = "Level 3" }, |
| 81 | + new GamelogicEngineLamp("14") { Description = "#1 Drop Target (Lower)" }, |
| 82 | + new GamelogicEngineLamp("15") { Description = "#2 Drop Target (Lower)" }, |
| 83 | + new GamelogicEngineLamp("16") { Description = "#3 Drop Target (Lower)" }, |
| 84 | + new GamelogicEngineLamp("17") { Description = "#4 Drop Target (Lower)" }, |
| 85 | + new GamelogicEngineLamp("18") { Description = "#5 Drop Target (Lower)" }, |
| 86 | + new GamelogicEngineLamp("19") { Description = "Left Side Rollover" }, |
| 87 | + new GamelogicEngineLamp("20") { Description = "Left Return Rollover" }, |
| 88 | + new GamelogicEngineLamp("21") { Description = "Right Return Rollover" }, |
| 89 | + new GamelogicEngineLamp("22") { Description = "Right Side Rollover" }, |
| 90 | + new GamelogicEngineLamp("23") { Description = "#1 Top Rollover (\"A\")" }, |
| 91 | + new GamelogicEngineLamp("24") { Description = "#2 Top Rollover (\"B\")" }, |
| 92 | + new GamelogicEngineLamp("25") { Description = "#3 Top Rollover (\"C\")" }, |
| 93 | + new GamelogicEngineLamp("26") { Description = "\"R\"" }, |
| 94 | + new GamelogicEngineLamp("27") { Description = "\"O\"" }, |
| 95 | + new GamelogicEngineLamp("28") { Description = "\"C\"" }, |
| 96 | + new GamelogicEngineLamp("29") { Description = "\"K\"" }, |
| 97 | + new GamelogicEngineLamp("30") { Description = "\"AND\"" }, |
| 98 | + new GamelogicEngineLamp("31") { Description = "\"R\"" }, |
| 99 | + new GamelogicEngineLamp("32") { Description = "\"O\"" }, |
| 100 | + new GamelogicEngineLamp("33") { Description = "\"L\"" }, |
| 101 | + new GamelogicEngineLamp("34") { Description = "\"L\"" }, |
| 102 | + new GamelogicEngineLamp("35") { Description = "\"L\"" }, |
| 103 | + new GamelogicEngineLamp("36") { Description = "\"I\"" }, |
| 104 | + new GamelogicEngineLamp("37") { Description = "\"V\"" }, |
| 105 | + new GamelogicEngineLamp("38") { Description = "\"E\"" }, |
| 106 | + new GamelogicEngineLamp("39") { Description = "\"S\"" }, |
| 107 | + new GamelogicEngineLamp("40") { Description = "\"!\"" }, |
| 108 | + new GamelogicEngineLamp("41") { Description = "Double Scoring" }, |
| 109 | + new GamelogicEngineLamp("42") { Description = "2X" }, |
| 110 | + new GamelogicEngineLamp("43") { Description = "3X" }, |
| 111 | + new GamelogicEngineLamp("44") { Description = "4X" }, |
| 112 | + new GamelogicEngineLamp("45") { Description = "5X" }, |
| 113 | + new GamelogicEngineLamp("46") { Description = "Spot Target" }, |
| 114 | + new GamelogicEngineLamp("47") { Description = "Left Outside Rollover / Right Spinner" }, |
| 115 | + new GamelogicEngineLamp("51") { Description = "Right Outisde Rollover / Left Spinner" }, |
| 116 | + }; |
| 117 | + |
| 118 | + protected override GamelogicEngineCoil[] GameCoils { get; } = { |
| 119 | + new GamelogicEngineCoil("05", 5) { Description = "Five Pos. Bank Reset", DeviceHint = "^5PosBank\\s*" }, |
| 120 | + new GamelogicEngineCoil("06", 6) { Description = "Four Pos. Bank Reset", DeviceHint = "^4PosBank\\s*" }, |
| 121 | + new GamelogicEngineCoil("08", 8) { Description = "Knocker Assembly" }, |
| 122 | + new GamelogicEngineCoil("09", 8) { Description = "Outhole", DeviceHint = "^Trough\\s*\\d?", DeviceItemHint = "eject_coil" }, |
| 123 | + }; |
| 124 | + } |
| 125 | +} |
0 commit comments