15 | Tournament Mode 16 |
17 |18 | Tournament Mode is when there are enough humans (as opposed to robots) playing that the game “counts”. Usually this is 4 or more humans per side. 19 |
20 |21 | Once you are in tournament mode, you will earn “Damage Inflicted” with every ship killed, every army bombed, and every planet captured. Sufficient damage inflicted, plus a high enough offense rating (damage inflicted per hour) will result in “promotions” to higher rank. If you are not playing as a guest, these promotions will persist to future games on the same server. 22 |
23 |
24 |
25 |
27 | feedback@networkmom.net 28 |
29 | 30 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page12.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Have fun 16 |
17 |18 | While Netrek is an intense team game, make sure to have fun. There are always players better or (once you get a bit of practice) worse than you. The robots are pretty good (much better than the 1991 robots) so don’t be frustrated while learning. Be friendly to your teammates and opposing players. 19 |
20 |21 | feedback@networkmom.net 22 |
23 | 24 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page15.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Netrek Server Types 16 |
17 |18 | Bronco 19 |
20 |21 | Bronco Netrek servers are “standard” Netrek servers with 6 ship types and standard weapons and gameplay. pickled.netrek.org and continuum.uc.netrek.org are Bronco servers. 22 |
23 |24 | Sturgeon 25 |
26 |27 | Sturgeon servers add some special weapons (missiles for example) and ships (this client calls it the battlecruiser for legal reasons). This client does not support all Sturgeon features but is playable on Sturgeon servers. netrek.beesenterprises.com is a Sturgeon server. 28 |
29 |30 | Paradise 31 |
32 |33 | Paradise was a Netrek variant including larger numbers of ships, large map, star clusters, and more strategic gameplay. Paradise required a custom client. This client does not support Paradise mode. There are no known operational Paradise Netrek servers at this time. 34 |
35 |36 | Hockey 37 |
38 |39 | Netrek Hockey was a silly but fun Netrek variant where you use improved tractor and pressor beams to move a “puck” into the “enemy goal” to score. Standard Bronco clients should work with Netrek Hockey, but there are no known operational Netrek Hockey servers online at this time. 40 |
41 |42 | Other variants 43 |
44 |45 | There were other Netrek server types, including “Chaos”, “Base Practice”, “International Netrek League”. 46 |
47 |48 | feedback@networkmom.net 49 |
50 | 51 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page16.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Derived copyright notices 16 |
17 |
18 |
19 |
21 | feedback@networkmom.net 22 |
23 | 24 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page17.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Original XTrek Copyright notice 16 |
17 |18 | /* 19 |
20 |21 | * Copyright (c) 1986 Chris Guthrie 22 |
23 |24 | * 25 |
26 |27 | * Permission to use, copy, modify, and distribute this software and its 28 |
29 |30 | * documentation for any purpose and without fee is hereby granted, provided 31 |
32 |33 | * that the above copyright notice appear in all copies and that both that 34 |
35 |36 | * copyright notice and this permission notice appear in supporting 37 |
38 |39 | * documentation. No representations are made about the suitability of this 40 |
41 |42 | * software for any purpose. It is provided "as is" without express or 43 |
44 |45 | * implied warranty. 46 |
47 |48 | * 49 |
50 |51 | * Copyright 1989 Kevin P. Smith Scott Silvey 52 |
53 |54 | * 55 |
56 |57 | * ditto. 58 |
59 |60 | */ 61 |
62 |
63 |
64 |
66 | feedback@networkmom.net 67 |
68 | 69 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page18.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Original Netrek Copyright Notice 16 |
17 |18 | /* 19 |
20 |21 | * Copyright 1989 Kevin P. Smith Scott Silvey 22 |
23 |24 | * 25 |
26 |27 | * Permission to use, copy, modify, and distribute this software and its 28 |
29 |30 | * documentation for any purpose and without fee is hereby granted, provided 31 |
32 |33 | * that the above copyright notice appear in all copies. 34 |
35 |36 | */ 37 |
38 |39 | feedback@networkmom.net 40 |
41 | 42 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Teams 16 |
17 |18 | Federation 19 |
20 |21 | The Federation are in the bottom left quadrant of the strategic map and have Earth as their homeworld. Their planets are yellow and their ships are white with yellow shields. 22 |
23 |24 | Romans 25 |
26 |27 | The Romans are in the top left quadrant and have Rome as their homeworld. Their planets and ships are red. 28 |
29 |30 | Kazari 31 |
32 |33 | The Kazari are in the top right quadrant and have Kazari as their homeworld. Their planets and ships are green. 34 |
35 |36 | Orions 37 |
38 |39 | The Orions are in the bottom right quadrant and have Orion as their homeworld. Their planets and ships are blue. 40 |
41 |42 | Indi 43 |
44 |45 | Occasionally an “independent” robot will spawn on the map to “discourage” players who attack neutral planets. Indi are white or gray. 46 |
47 |48 | feedback@networkmom.net 49 |
50 | 51 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/Page8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |15 | Other commands 16 |
17 |18 | Information 19 |
20 |21 | The i key will show information about the planet or player closest to the mouse location. This information will show up on the tactical map for 2 seconds, plus in the message window in the bottom right (this is useful when getting information for a far away planet or player on the strategic map). 22 |
23 |24 | Repair 25 |
26 |27 | R will stop your ship, lower your shields, and start repairs. This increases the normal repair rate. Orbiting a friendly planet with a repair icon, or being docked with a friendly starbase, will also increase the repair rate. Any movement or weapon command will cancel repairs. 28 |
29 |30 | Even while not using the full R repair mode, your ship automatically repairs shields at a slow pace. If your shields are down then your ship automatically repairs damage at a slow pace. 31 |
32 |33 | Docking permission toggle 34 |
35 |36 | A starbase can permit or deny permission for friendly ships to dock with it. This is to prevent a starbase at the front lines from being crippled by friendly ships exploding on top of it. Some netrek clients support a “transwarp to the starbase”, which this also denies. This client does not currently support transwarping to the starbase. 37 |
38 |39 | feedback@networkmom.net 40 |
41 | 42 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/help.helpindex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/en-US.lproj/help.helpindex -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/Images: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/Images -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/empty-planet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/empty-planet.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/fuel-repair-planet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/fuel-repair-planet.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/manual-server-entry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/manual-server-entry.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/manually-choose-server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/manually-choose-server.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/orbiting-planet-with-armies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/orbiting-planet-with-armies.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/select-cruiser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/select-cruiser.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/select-server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/select-server.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/strategic-map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/strategic-map.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/tactical-map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/tactical-map.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/unknown-or-indi-planet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/images/unknown-or-indi-planet.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/jquery-theme/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/js/skin-lion/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/js/skin-lion/icons.gif -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/js/skin-lion/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/darrellroot/Netrek-SwiftUI/1880824e4d8ecb101d27f88e8e57f45a18dc5bfc/NetrekMacOS/Resources/Netrek.help/Contents/Resources/js/skin-lion/loading.gif -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/js/topicpage.js: -------------------------------------------------------------------------------- 1 | /* 2 | Allows redirection from a topic page to index.html, e.g. index.html?TopicPage.html 3 | */ 4 | if (!document.getElementById("tree")) { 5 | var currentPage = top.location.href.substring(top.location.href.lastIndexOf("/") + 1, top.location.href.length); 6 | top.location.href = "index.html?" + currentPage; 7 | } 8 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/txt/fancytree-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2008-2015 Martin Wendt, 2 | http://wwWendt.de/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/txt/jquery-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 2 | 3 | This software consists of voluntary contributions made by many 4 | individuals. For exact contribution history, see the revision history 5 | available at https://github.com/jquery/jquery 6 | 7 | The following license applies to all parts of this software except as 8 | documented below: 9 | 10 | ==== 11 | 12 | Permission is hereby granted, free of charge, to any person obtaining 13 | a copy of this software and associated documentation files (the 14 | "Software"), to deal in the Software without restriction, including 15 | without limitation the rights to use, copy, modify, merge, publish, 16 | distribute, sublicense, and/or sell copies of the Software, and to 17 | permit persons to whom the Software is furnished to do so, subject to 18 | the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be 21 | included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | ==== 32 | 33 | All files located in the node_modules and external directories are 34 | externally maintained libraries used by this software which have their 35 | own licenses; we recommend you read them, as their terms may differ from 36 | the terms above. 37 | -------------------------------------------------------------------------------- /NetrekMacOS/Resources/Netrek.help/Contents/Resources/txt/jquery-ui-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright jQuery Foundation and other contributors, https://jquery.org/ 2 | 3 | This software consists of voluntary contributions made by many 4 | individuals. For exact contribution history, see the revision history 5 | available at https://github.com/jquery/jquery-ui 6 | 7 | The following license applies to all parts of this software except as 8 | documented below: 9 | 10 | ==== 11 | 12 | Permission is hereby granted, free of charge, to any person obtaining 13 | a copy of this software and associated documentation files (the 14 | "Software"), to deal in the Software without restriction, including 15 | without limitation the rights to use, copy, modify, merge, publish, 16 | distribute, sublicense, and/or sell copies of the Software, and to 17 | permit persons to whom the Software is furnished to do so, subject to 18 | the following conditions: 19 | 20 | The above copyright notice and this permission notice shall be 21 | included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 24 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 26 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 27 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 28 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 29 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | ==== 32 | 33 | Copyright and related rights for sample code are waived via CC0. Sample 34 | code is defined as all source code contained within the demos directory. 35 | 36 | CC0: http://creativecommons.org/publicdomain/zero/1.0/ 37 | 38 | ==== 39 | 40 | All files located in the node_modules and external directories are 41 | externally maintained libraries used by this software which have their 42 | own licenses; we recommend you read them, as their terms may differ from 43 | the terms above. 44 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/CommunicationsView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BottomView.swift 3 | // Netrek2 4 | // 5 | // Created by Darrell Root on 5/9/20. 6 | // Copyright © 2020 Darrell Root. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct CommunicationsView: View { 12 | @ObservedObject var universe = Universe.universe 13 | @FocusState var textFieldFocused 14 | 15 | 16 | var body: some View { 17 | HStack { 18 | StatisticsView(universe: universe, me: universe.players[universe.me]) 19 | MessagesView(universe: universe, textFieldFocused: _textFieldFocused) 20 | }.frame(minWidth: 1000) 21 | } 22 | } 23 | 24 | /*struct BottomView_Previews: PreviewProvider { 25 | static var previews: some View { 26 | BottomView() 27 | } 28 | }*/ 29 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/EverythingView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EverythingView.swift 3 | // Netrek 4 | // 5 | // Created by Darrell Root on 3/4/22. 6 | // Copyright © 2022 Darrell Root. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct EverythingView: View { 12 | @ObservedObject var help: Help 13 | @ObservedObject var universe = Universe.universe 14 | @ObservedObject var preferencesController: PreferencesController 15 | @FocusState var textFieldFocused 16 | 17 | var body: some View { 18 | GeometryReader { geo in 19 | VStack(spacing: 0) { 20 | HStack(spacing: 0) { 21 | TacticalView(help: help, preferencesController: preferencesController) 22 | .frame(width: geo.size.width / 2, height: geo.size.width / 2) 23 | .border(universe.players[Universe.universe.me].alertCondition.color.opacity(0.5), width: 10) 24 | .onTapGesture { 25 | textFieldFocused = false 26 | } 27 | .clipped() 28 | 29 | StrategicView() 30 | .frame(width: geo.size.width / 2, height: geo.size.width / 2) 31 | .border(universe.players[Universe.universe.me].alertCondition.color.opacity(0.5), width: 10) 32 | .onTapGesture { 33 | textFieldFocused = false 34 | } 35 | .clipped() 36 | } 37 | CommunicationsView(textFieldFocused: _textFieldFocused) 38 | .frame(width: geo.size.width) 39 | .border(universe.players[Universe.universe.me].alertCondition.color.opacity(0.5), width: 3) 40 | .clipped() 41 | } 42 | } 43 | } 44 | } 45 | 46 | /*struct EverythingView_Previews: PreviewProvider { 47 | static var previews: some View { 48 | EverythingView() 49 | } 50 | }*/ 51 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/ManualServerView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ManualServerView.swift 3 | // Netrek2 4 | // 5 | // Created by Darrell Root on 6/1/20. 6 | // Copyright © 2020 Darrell Root. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct ManualServerView: View { 12 | let appDelegate = NSApplication.shared.delegate as! AppDelegate 13 | @State var server: String = "" 14 | @Environment(\.presentationMode) var presentationMode 15 | 16 | var body: some View { 17 | VStack { 18 | HStack { 19 | TextField("Input server name or IP", text: $server,onCommit: self.commit).frame(width: 350) 20 | Button("Connect") { 21 | self.commit() 22 | } 23 | } 24 | Text("pickled.netrek.org is a well-known Netrek server") 25 | }.padding(20) 26 | } 27 | func commit() -> Void { 28 | if self.server != "" { 29 | self.appDelegate.connectToServer(server: self.server) 30 | self.presentationMode.wrappedValue.dismiss() 31 | } 32 | } 33 | } 34 | 35 | struct ManualServerView_Previews: PreviewProvider { 36 | static var previews: some View { 37 | ManualServerView() 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/PlanetStrategicView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PlanetView.swift 3 | // Netrek2 4 | // 5 | // Created by Darrell Root on 5/6/20. 6 | // Copyright © 2020 Darrell Root. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct PlanetStrategicView: View, StrategicOffset { 12 | var planet: Planet 13 | @ObservedObject var updateCounter = Universe.universe.seconds 14 | // @ObservedObject var me: Player 15 | var me: Player 16 | var body: some View { 17 | return GeometryReader { geo in 18 | ZStack { 19 | Text(self.planet.shortName).foregroundColor(self.planet.seen[self.me.team]! ? NetrekMath.color(team: self.planet.owner) : .gray).fontWeight((self.planet.armies > 4 && self.planet.seen[self.me.team]!) ? .heavy : .regular) 20 | } 21 | .offset(x: self.screenX(netrekPositionX: self.planet.positionX, screenWidth: geo.size.width), y: self.screenY(netrekPositionY: self.planet.positionY, screenHeight: geo.size.height)) 22 | } 23 | 24 | } 25 | } 26 | 27 | /*struct PlanetView_Previews: PreviewProvider { 28 | static var previews: some View { 29 | PlanetView() 30 | } 31 | }*/ 32 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/PlayerStrategicView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PlayerView.swift 3 | // Netrek2 4 | // 5 | // Created by Darrell Root on 5/6/20. 6 | // Copyright © 2020 Darrell Root. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct PlayerStrategicView: View, StrategicOffset { 12 | var player: Player 13 | @ObservedObject var updateCounter = Universe.universe.seconds 14 | var body: some View { 15 | return GeometryReader { geo in 16 | Text(self.playerText).foregroundColor(self.playerColor) 17 | .offset(x: self.screenX(netrekPositionX: self.player.positionX, screenWidth: geo.size.width), y: self.screenY(netrekPositionY: self.player.positionY, screenHeight: geo.size.height)) 18 | } 19 | } 20 | var playerColor: Color { 21 | if player.cloak == true { 22 | return Color.gray 23 | } else { 24 | return NetrekMath.color(team: self.player.team) 25 | } 26 | } 27 | var playerText: String { 28 | if player.cloak == true { 29 | return "??" 30 | } else { 31 | let playerLetter = NetrekMath.playerLetter(playerId: player.playerId) 32 | let teamLetter = NetrekMath.teamLetter(team: player.team) 33 | return teamLetter + playerLetter 34 | } 35 | } 36 | /*func screenX(netrekPositionX: Int,screenWidth: CGFloat) -> CGFloat { 37 | return (screenWidth * CGFloat(netrekPositionX) / CGFloat(NetrekMath.galacticSize)) - screenWidth / 2 38 | } 39 | func screenY(netrekPositionY: Int,screenHeight: CGFloat) -> CGFloat { 40 | return -(screenHeight * CGFloat(netrekPositionY) / CGFloat(NetrekMath.galacticSize)) + screenHeight / 2 41 | }*/ 42 | 43 | } 44 | 45 | /*struct PlayerView_Previews: PreviewProvider { 46 | static var previews: some View { 47 | PlayerView() 48 | } 49 | }*/ 50 | -------------------------------------------------------------------------------- /NetrekMacOS/Views/PointingView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PointingView.swift 3 | // Netrek2 4 | // 5 | // Created by Darrell Root on 5/7/20. 6 | // Copyright © 2020 Darrell Root. All rights reserved. 7 | // 8 | // Code in this file based don https://swiftui-lab.com/a-powerful-combo/ 9 | 10 | import Foundation 11 | import SwiftUI 12 | 13 | extension View { 14 | func pointingMouse(onPoint: @escaping (NSEvent,NSPoint) -> Void) -> some View { 15 | PointingAreaView(onPoint: onPoint) { self } 16 | } 17 | } 18 | 19 | struct PointingAreaView