Commit Graph

27 Commits

Author SHA1 Message Date
ALONSO Laurent
e080efbee0 add some include to make the compilation possible on linux,
+ add a cmake project to "simplify" to linux compilation.
2022-06-30 01:10:46 -04:00
ALONSO Laurent
47fd08904f all: try to protect access to journal_strs and sign_locs against bad index... 2022-06-30 01:10:46 -04:00
ALONSO Laurent
a92a4b34d6 create files boe.minimap.*pp to regroup the minimap codes
+ try to improve this code but this is still not perfect :-~
2022-06-30 01:10:45 -04:00
ALONSO Laurent
07006c7818 [calref/cboe]: Fix misclassified file in the MSVC project files 2022-06-30 01:10:44 -04:00
ALONSO Laurent
6c753ee0f0 [calref/cboe]: Split out cContainer, cLed, and cLedGroup into their own files 2022-06-30 01:10:44 -04:00
Laurent alonso
e625927a29 graphics: begin to rewrite code to be more simple: - add
a struct Texture to store a sf::Texture and the application's texture sizes,
 - add a texture resources manager and retrieve codes to allow - if needed,
 rescaling startsplash and spidlogo at startup - loading some graphics with
 different resolutions:     buttons, inventory, pcedbuttons, statarea,
 startanim,     startbut, startup, terscreen, textbar, transcript   can be
 used to load high resolution pictures.

Note: currently, render_image and res_image are a mess as Texture and sf:Texture classes
  cohabit :-~
2022-06-30 01:08:48 -04:00
alonso
c93a50b514 Try to add a XCode 11 proj assuming that
- boost is installed with brew
- /usr/local/SFML contains SFML, ie. /usr/local/SFML/{Frameworks,include,lib} exist
2022-06-30 01:08:48 -04:00
a8e120d672 Update VS2013 project 2020-02-09 19:56:28 -05:00
0cebb61ace Update Xcode project 2020-02-09 18:24:20 -05:00
ee624b17c5 Add all the schemas to the Xcode project for easy access 2020-02-06 00:06:00 -05:00
f9f4d5671c Factor out the framerate limiter into a class
Patch from @x-qq
2020-02-01 21:03:56 -05:00
4859fa70bc Factor out the game toolbars into a class.
This includes the following related or incidental changes:
* Remove the win_from_rects global variable. With one minor exception, they were all equal to the relevant render texture's size anyway.
* Split out time advancement from the handle_action function into a separate function
* Split out each individual button action into its own function
* Thanks to the above two, button actions triggered from the keyboard (and menu spells) no longer pass thru handle_action
* Side-effect: keyboard shortcuts and menu spells no longer trigger the button press animation
* Button presses now behave like proper buttons
* Button clicks are now grouped by effect in the handling code, rather than by index
* Removed a variable that mysteriously caused dialogue to become blank
2020-01-30 00:00:40 -05:00
b0fddcd8a6 Update Xcode project and fix Mac build 2020-01-26 13:06:22 -05:00
542c037342 Integrate a new resource manager which should have better performance 2020-01-26 11:53:19 -05:00
fb28a4da2e Fix Mac build 2020-01-12 13:19:32 -05:00
4f785e2650 Use enums for most of the rest of the game constants.
This adds an "enum map" type that allows safe usage of an enum to index an array.
(That is, it enforces that the index is of the enum type.)
2019-11-24 20:28:52 -05:00
514a5dccc9 Xcode: Fix tests working directory 2018-04-07 10:01:08 -04:00
4e6d690de6 Xcode: Fix a couple more incorrect file paths 2018-04-07 09:52:43 -04:00
b54ab46d7e XCode: Fix an incorrect path 2018-04-06 21:06:23 -04:00
a0b61c1065 New VS2013 projectfile fixups
* Fix non-relative include paths for resources
* Fix one file path for the tests build
  (Currently tests crash for me, but at least they do compile?)
* Remove old VS project junkfiles from gitignore
* Fix missing resource compiler include paths for Release builds
2018-03-03 17:41:29 -05:00
Mark Clark
05711ec831 Removed copyfiles.bat and replaced functionality with MSBUILD targets;
Added 'gitinfo' NuGet package to replace need for bash to create gitrev.hpp;
Added preproccessor statement to prevent 'gitrev.hpp' from being referenced;
Re-ordered preproccessor definitions for easier diffing;
2018-02-25 23:30:13 -05:00
Mark Clark
942b102ed4 Corrected 'AdditionalIncludeDirectories' paths;
Corrected 'ForcedIncludeFiles' path;
2018-02-25 23:23:44 -05:00
Mark Clark
f81b6fd927 Fixed paths on all project source files; 2018-02-25 22:55:38 -05:00
Mark Clark
265f959ecf Moved project; 2018-02-25 22:54:48 -05:00
Mark Clark
d501c340d0 Tests project (with initial files and existing files, needs work); 2018-02-25 14:55:17 -05:00
Mark Clark
cec4ca7a20 Added vs2017 project; 2018-02-25 14:55:10 -05:00
8759aad90a Move Xcode project to a separate tree parallel to src 2018-02-19 02:11:29 -05:00