Commit Graph

107 Commits (master)

Author SHA1 Message Date
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
Webster Sheets 37c96041e1
Refactor Body inheritance tree to remove Object and CityOnPlanet (#4995)
* Remove CityOnPlanet from Object hierarchy

* Remove Object from the inheritance hierarchy

* Rename Object -> ObjectType
2020-11-11 19:33:04 -05:00
Webster Sheets 2d9531d3d7 Add more profiling points
Better profile the startup phase, add profiling to Sound.cpp
2020-08-31 21:06:04 -04: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
Edoardo Morandi e6b9cd8d71 Remove many warnings 2020-04-25 01:31:42 +02:00
Karl F 436db08636 Happy new decade!
May you live long and prosper!
2020-01-01 10:47:46 +01:00
mike-f1 4f1eaa41d3 Update all files to store and use FrameId instead of raw pointers 2019-11-16 17:54:14 +01:00
mike-f1 e6403fc1ad Decouple includes; Remove some unused variable; Fix an equation in Space.cpp 2019-10-20 11:19:45 +02: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
mike-f1 bfe68e5d33 Separate SystemBody from StarSystem; Decouple a lot of includes 2019-05-12 14:16:54 +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
Andrew Copland 4be499f98f Fix the unused variable warnings caused by (Json::type_error &e) 2018-10-17 21:38:23 +01:00
Webster Sheets 3a3a13edec Update pioneer to use the new save system. 2018-10-11 11:45:57 -04:00
Andrew Copland f5c103b4cd Avoid storing zero vectors and identity Quaternions 2018-09-25 12:22:54 +01:00
John Bartholomew 67dcbcecf6 Move JsonUtils.h/cpp from contrib/json/ to src/
These files aren't part of the jsoncpp library and are custom for Pioneer.
They also directly include various other Pioneer source files.
2018-08-26 09:55:14 +01: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
John Bartholomew 7c3a13a0c0 Remove almost all includes of Serializer.h, include GameSaveError.h where necessary. 2017-12-26 13:02:26 +00:00
Peter d570cfdcd2 Fix all GCC 7.1.1 warnings.
- Use explicit Json::Value::Int.
- Resize some snprintf buffers.
- Ignore -Wfloat-equal where necessary.
2017-06-22 08:21:07 +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 9331a67f94 Make texture atlasing animations available to smoke and damage SFX too, remove old png files texture, use DDS format.
Add acknowledgement to OpenGameArt CC0 license.
2016-05-13 14:54:14 +01:00
Andrew Copland e05382bf9e Sfx ini file support, only explosion data supported at the moment really. 2016-05-13 11:34:05 +01:00
Andrew Copland 4478f9d68c const'mess and implemented copy constructor 2016-05-11 20:45:24 +01:00
Andrew Copland ebfb64213c Linux build fix and correct spacing syntax in for loop. 2016-05-11 20:06:45 +01:00
Andrew Copland 5545717251 Remove defunct individual sfx draw calls. 2016-05-11 16:27:24 +01:00
Andrew Copland 3a6445a33d Gather and draw sprites in batches using the explosions from a texture atlas. 2016-05-11 16:25:22 +01:00
Andrew Copland a02e33b884 Rewrite Sfx to split into manager and instances. 2016-05-10 14:52:46 +01:00
Andrew Copland ada91fa8ed Attempt to scale down based on distance and clamp when necessary 2016-04-19 21:52:16 +01:00
Andrew Copland 971d068c30 Make SFX use the new EFFECT_BILLBOARD 2016-04-03 18:10:21 +01:00
Andrew Copland fea5ac26b2 MERRY HAPPY 2016 2016-01-29 11:31:54 +00:00
Andrew Copland 33150ac1c9 Just fixup this silly conversion. 2015-07-22 20:25:46 +01:00
nick-the-ninja dc36866d93 Removing more old serialisation code. 2015-02-17 23:41:57 +00:00
nick-the-ninja ea07cbd107 Added JSON serialisation code for frames and sfx. 2015-02-15 14:27:57 +00:00
Robert Norris 9f95339a9d MERRY HAPPY 2014-12-31 23:05:37 +11:00
Robert Norris 87ac7b24dc mingw doesn't have std::to_string, sigh 2014-04-05 12:34:08 +11:00
Andrew Copland db9e8f3252 Correct the loading index and clamped range. 2014-03-25 13:08:13 +00:00
Andrew Copland e9e702a755 Reduce the number of frames for the explosion. 2014-03-25 12:53:28 +00:00
Andrew Copland 9f078e8539 Initial port of "explotion" code from Paragon. 2014-03-24 22:49:35 +00:00
lwho b88d4c9e7c Switch access to Frame::m_children to IterationProxy interface. 2014-02-22 17:54:57 +01:00
kko c581aff3d2 New vertex buffer class 2014-02-11 23:13:33 -05:00
kko bf57d30e38 DrawSurface now requires a RenderState 2014-01-29 09:01:29 -05:00
kko 63b8c081ff Delete old shieldEffect, unused 2014-01-27 22:04:15 -05:00
kko 2581bf0244 Require RenderState passed to DrawTriangles and DrawPointSprites 2014-01-27 19:22:40 -05:00
kko 4dd3209588 Use RenderState in background, HS cloud, projectile, sfx, speedlines 2014-01-26 15:11:27 -05:00
Robert Norris 6dc4283eb6 happy new year 2014-01-02 14:43:38 +11:00
Shadmar 73b6632f0a clamp smoke alpha since it can be negative 2013-12-23 21:20:23 +11:00
Miha Vitorovic 1df856d236 Changed all colors to Color4ub - Compiles and appears to be working. Needs some more testing. 2013-12-16 15:11:50 +11:00
Andrew Copland 08388d67fd A lot more profiling. 2013-12-10 21:42:50 +11:00