Skip to content

Commit 3ccfdb8

Browse files
committed
Merge branch 'main' of https://github.com/rbergen/R136
2 parents 3b0a83b + 8b01e84 commit 3ccfdb8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2029
-741
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15.0)
22

33
project(
44
R136
5-
VERSION 3.3.3)
5+
VERSION 3.4.0)
66

77
set(CURSES_NEED_NCURSES 1)
88
set(CURSES_NEED_WIDE 1)

R136.vcxproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
</Link>
156156
</ItemDefinitionGroup>
157157
<ItemGroup>
158+
<None Include="cpp.hint" />
158159
<None Include="README.md" />
159160
</ItemGroup>
160161
<ItemGroup>
@@ -163,6 +164,10 @@
163164
<ClInclude Include="include\commands.h" />
164165
<ClInclude Include="include\console.h" />
165166
<ClInclude Include="include\constants.h" />
167+
<ClInclude Include="include\data\animates.h" />
168+
<ClInclude Include="include\data\connections.h" />
169+
<ClInclude Include="include\data\items.h" />
170+
<ClInclude Include="include\data\rooms.h" />
166171
<ClInclude Include="include\gamedata.h" />
167172
<ClInclude Include="include\general.h" />
168173
<ClInclude Include="include\inlines\console.h" />
@@ -212,7 +217,7 @@
212217
<ClCompile Include="src\commands\simple.cpp" />
213218
<ClCompile Include="src\console.cpp" />
214219
<ClCompile Include="src\general.cpp" />
215-
<ClCompile Include="src\init.cpp" />
220+
<ClCompile Include="src\startup.cpp" />
216221
<ClCompile Include="src\intro.cpp" />
217222
<ClCompile Include="src\items\bandage.cpp" />
218223
<ClCompile Include="src\items\flashlight.cpp" />

R136.vcxproj.filters

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@
2727
<Filter Include="Source Files\commands">
2828
<UniqueIdentifier>{6ee72562-7192-43fe-9f16-9638044da1e8}</UniqueIdentifier>
2929
</Filter>
30+
<Filter Include="Header Files\data">
31+
<UniqueIdentifier>{cf38056a-d53a-437d-b222-9b266661aada}</UniqueIdentifier>
32+
</Filter>
3033
</ItemGroup>
3134
<ItemGroup>
3235
<None Include="README.md" />
36+
<None Include="cpp.hint" />
3337
</ItemGroup>
3438
<ItemGroup>
3539
<ClInclude Include="include\base.h">
@@ -111,14 +115,26 @@
111115
<Filter>Header Files\inlines</Filter>
112116
</ClInclude>
113117
<ClInclude Include="include\templates\items.h">
114-
<Filter>Header Files</Filter>
118+
<Filter>Header Files\templates</Filter>
119+
</ClInclude>
120+
<ClInclude Include="include\data\rooms.h">
121+
<Filter>Header Files\data</Filter>
122+
</ClInclude>
123+
<ClInclude Include="include\data\connections.h">
124+
<Filter>Header Files\data</Filter>
125+
</ClInclude>
126+
<ClInclude Include="include\data\animates.h">
127+
<Filter>Header Files\data</Filter>
128+
</ClInclude>
129+
<ClInclude Include="include\data\items.h">
130+
<Filter>Header Files\data</Filter>
115131
</ClInclude>
116132
</ItemGroup>
117133
<ItemGroup>
118134
<ClCompile Include="src\console.cpp">
119135
<Filter>Source Files</Filter>
120136
</ClCompile>
121-
<ClCompile Include="src\init.cpp">
137+
<ClCompile Include="src\startup.cpp">
122138
<Filter>Source Files</Filter>
123139
</ClCompile>
124140
<ClCompile Include="src\gamedata.cpp">

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ After that, for non-Windows platforms, I've added a CMake build configuration. W
2020
* WSL (Ubuntu) using GCC and ncurses
2121
* MacOS using (MacOS native) Clang and ncurses
2222

23-
Oh, yeah, the game is in Dutch, although the source code itself is now fully in English. I guess international awareness & orientation is something that developed in me over the past couple of decades...
23+
The game was originally only available in the Dutch language, but has now been translated to English as a second language. The source code itself is now fully in English, also. I guess international awareness & orientation took a couple of decades to develop in me, but here we are. (Note: getting R136 to start in English requires the `-e` command line argument to be passed to it; Dutch is still the default.)
2424

2525
## Credits
2626

cpp.hint

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Hint files help the Visual Studio IDE interpret Visual C++ identifiers
2+
// such as names of functions and macros.
3+
// For more information see https://go.microsoft.com/fwlink/?linkid=865984
4+
#define in_the_forest
5+
#define in_the_swamp
6+
#define at_an_open_space
7+
#define smelly_surface
8+
#define in_an_empty_cave
9+
#define in_a_stairwell_cave
10+
#define other_levels

include/actions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22

33
#include "types/base.h"
44

include/animates.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#pragma once
1+
#pragma once
22

33
#include "types/animates.h"

include/base.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22

33
#include "types/base.h"
44

@@ -7,4 +7,7 @@ AnimateStatus operator++(AnimateStatus& status, int);
77
AnimateStatus& operator++(AnimateStatus& status);
88

99
#include "templates/base.h"
10-
#include "inlines/base.h"
10+
#include "inlines/base.h"
11+
12+
#define select(...) select_language_param(core.language, __VA_ARGS__)
13+
#define get_y_or_n() (tolower(console.main().get_char_input(select("jJnN", "yYnN"))) == select((int)'j', (int)'y'))

include/commands.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
#pragma once
1+
#pragma once
22

33
#include "base.h"
44

55
namespace commands
66
{
7-
bool finish();
7+
bool finish(CoreData& core);
88

9-
void wait(void);
9+
void wait(CoreData& core);
1010

1111
void show_status(CoreData& core);
1212

13-
void show_help(void);
13+
void switch_language(CoreData& core);
14+
15+
void show_help(CoreData& core);
1416

1517
void use(CoreData& core, ItemID item_id);
1618

include/console.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#pragma once
1+
#pragma once
22

33
#include "types/console.h"
44

0 commit comments

Comments
 (0)