Commit Graph

77 Commits (master)

Author SHA1 Message Date
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
GunChleoc 2a6956e35f Fix unused variables in release build 2020-12-04 18:47:05 -05:00
Webster Sheets 5af6f9c710 Apply clang-format changes 2020-05-21 16:54:40 -04:00
Webster Sheets 8076a7b767 Move several classes to core module
This is primarily to make tool development easier - right now the only
way to build a tool without linking all 90MB+ of pioneer binary into the
tool is to cherry-pick a set of cpp files and hope you have all the
symbols you need for what you're doing.

Over time, "generic" functionality like compression, math, etc. will be
moved to the core module so tools can link against one library without
incurring lengthy link and compile times.
2020-05-15 16:36:14 -04:00
Karl F 436db08636 Happy new decade!
May you live long and prosper!
2020-01-01 10:47:46 +01:00
Webster Sheets 09a84e6694 Better profiling, speedup model saving / loading. 2019-06-17 18:14:27 -04:00
mike-f1 75956b9fd0 Decouple includes of Sfx.* and trade dependency from Ship with dependency from ModelBody
Forward declare Space in Ship.h; Make things compiling again

Decouple WorldView.h; Some other decouple here and there

Decouple Renderer no more included in RenderState; Model not including directly its childs
2019-05-21 17:50:50 +02:00
Webster Sheets 5cdaefad6a Run clang-format over the entire code base.
Fix hidden header-inclusion-order dependency errors.
Update .clang-format for v7.0.1.
2019-01-05 17:09:05 -05:00
Karl F d2ab921b62 Happy New Year!
Awesome sauce (for next year):
find . -type f -exec sed -i 's/2008-2018 Pioneer Developers'/'2008-2019 Pioneer Developers/g' {} \;

closes #4507
2019-01-03 15:28:42 +01:00
Webster Sheets 3a3a13edec Update pioneer to use the new save system. 2018-10-11 11:45:57 -04:00
John Bartholomew 76e541b340 Add the worst imaginable error handling to ShipType and SpaceStationType loaders.
Fixes #4226
2018-01-02 19:31:03 +00:00
Karl F 7225e9c723 Happy New Year!
Ten years in the making now, but how can we improve upon perfection
for ten more years?
2018-01-01 21:22:12 +01:00
Peter 54196f07ad Add :space_station_type to CustomSystemBody
You can now use :space_station_type("new_ground") etc. to specify
the exact type of station model to use. The name is the json filename
without the extension.
2017-04-27 12:48:50 +02:00
Peter 75bebd7f89 fix all gcc warnings 2017-04-24 19:47:26 +02:00
Andrew Copland 8cb1555f67 Eliminate the evil trailing whitespace 2017-03-05 13:15:55 +00:00
Andrew Copland 74d50958fe MERRY HAPPY 2017 2017-01-04 15:11:15 +00:00
Andrew Copland fea5ac26b2 MERRY HAPPY 2016 2016-01-29 11:31:54 +00:00
Robert Norris 9f95339a9d MERRY HAPPY 2014-12-31 23:05:37 +11:00
Robert Norris 9bfc0b3517 silence compile warnings on linux 2014-12-31 23:00:14 +11:00
Andrew Copland ab826ca79c Ignore the designated bay number and just increment a counter 2014-12-29 15:55:56 +00:00
Andrew Copland 81a5fa45a8 Update the SpaceStationType code to use the JSON definition files.
Refactor into class with private members at same time.
2014-11-20 19:26:57 +00:00
Andrew Copland 8a1f5044e6 These should fix the warnings gcc gives. 2014-09-13 10:48:27 +01:00
Andrew Copland 1eaeca295f I knew there was a better way of doing it! 2014-09-07 17:32:07 +01:00
Andrew Copland 2aaec23306 Completely change the way I define the location of the intermediate docking locator.
Do a ray-plane intersection to find the place nearest to the pad locator.
The ray comes from the furthest approach point, through the centre line of the station.
The plane is defined by the location of the pad and the normalised axes of it's transform.
2014-09-07 14:36:32 +01:00
Andrew Copland 8a924ffa6b Keep the position of the approach locator but match the orientation of the pad! 2014-09-06 21:48:20 +01:00
Andrew Copland c2a28a8a7d More BayGroup -> Port conversion. 2014-09-06 15:29:23 +01:00
Andrew Copland 4f9b820f5c Remove the BayGroup naming convention. Attempt to make things Ports, PortPaths or Bays to reduce confusion. 2014-09-06 15:05:57 +01:00
Andrew Copland 7896676890 Tidy up the comments and remove a #pragma optimize off I left in. 2014-08-05 21:08:56 +01:00
Andrew Copland 2b67304709 Single comment update. 2014-07-31 22:23:43 +01:00
Andrew Copland 1297dcfb1d Adding support for exit_port# tags. 2014-07-31 21:38:03 +01:00
Andrew Copland ae0601369a Better docking initial commit.
Uses single point for the pad location, an offset called "pad_offset" set in the lua, and a single entrance locator.
All other points required for docking and launching are generated from these.
2014-07-20 15:19:18 +01:00
Andrew Copland e9d9ceefa6 Implement most of the warning & performance points from my annual CppCheck run.
Most of these are functionally equivalent but are slightly more optimal, most are just a recommended way of doing things.
2014-04-16 18:09:40 +01:00
Andrew Copland 62c7cdd4e9 Moved and templated interpolation. 2014-02-18 21:27:26 +00:00
Andrew Copland 13c23bcfea Use the new ship landing position offset value.
Cleanup passing the ship pointer around to where it's no longer used and assert that it's valid where it is.
2014-01-28 22:49:02 +00:00
Robert Norris 16804d774c remove OS-specific error and warning functions, just call the SDL message box function 2014-01-28 17:13:05 +11:00
Robert Norris 6dc4283eb6 happy new year 2014-01-02 14:43:38 +11:00
Miha Vitorovic 0cad4a5572 Added function "ends_with_ci" to utils (ends with case insensitive), and
using this function throughout the code.
2013-12-05 22:18:31 +01:00
kko ca6a940359 Change some uint32_t -> Uint32, because that's our dominant style 2013-06-26 21:26:55 -04:00
Andrew Copland 2c51d935bc Tidy up the iterator end checking in SpaceStationType.cpp
Limit docking to the applicable docking bay sizes.
Correct some lines endings.
2013-05-14 22:58:05 +01:00
Robert Norris 85e2dc10a6 replace NULL with plain old 0 as the C++ gods intended 2013-05-09 07:35:48 +10:00
Andrew Copland 381934c767 Merge branch 'master' of git://github.com/pioneerspacesim/pioneer into Fix2239
Conflicts:
	src/SpaceStation.cpp
2013-04-29 18:02:39 +01:00
Andrew Copland 947fc4d60d ShipAICmd - actually check the return value, for all the good it does.
WorldView - don't present the docking/clearance options if we're already doing them with this spacestation.
Add accessors with range checking to SpaceStationType to try and catch bad accesses in future.
2013-04-27 21:22:59 +01:00
Andrew Copland aeb350cc73 After struggling with this I give up for now on getting the low-res LOD to work.
It totally fucks the tags it seems, that means I can't retrieve the docking bays or stages and then the wheels fall off.
Included is the low-LOD and the docking stages have been split out again.
2013-04-22 08:43:29 +01:00
John Bartholomew 53723d65e2 clean up station docking stage/docking node checks 2013-04-20 15:24:24 +01:00
Andrew Copland 04f904f377 Added some logging and errors/warnings.
Also removed the numDockingPorts from the Lua and instead calculate it from the number of docking bays actually defined.
2013-04-20 14:52:20 +01:00
Simon Chopin 6379d241d9 SST: Store the end iterator before looping over a Lua table 2013-04-08 23:10:01 +02:00
Simon Chopin 212dec216b SpaceStationType: Rename some variables to be a little more explicit. 2013-03-30 18:37:38 +01:00
Simon Chopin af909bb463 Port SpaceStation to LuaTable. 2013-03-30 18:37:37 +01:00
Andrew Copland 3944023335 DeDuplicate finding a std::map entry. 2013-03-29 15:59:34 +00:00
Andrew Copland 993f14ee3e Change some iterators and reduce the duplicate std::map find calls. 2013-03-29 15:42:36 +00:00