29 Commits

Author SHA1 Message Date
yvt
b4dcec2e1c
Use make_unique to construct unique_ptr 2019-07-20 16:34:35 +09:00
yvt
7c3a39e639
Modernize
- Replaced raw pointers with references or smart pointers. Nullable
  references are represented by `stmp::optional<const T&>`. (There are
  many raw pointers still remaining. They should be replaced at some
  point.)
- Added class template specializations `stmp::optional<T &>` and
  `stmp::optional<const T&>`.
- Fixed `stmp::optional`'s various behaviors
- `World::{players, playerPersistents}` are now `std::array`.
- More uses of `stmp::optional` to clarify the semantics
- Renamed `PlayerThrownGrenade` to `PlayerThrewGrenade`
- Replaced old-style `for` loops with range based ones
- Deleted `Player`'s default constructors and `operator =`
- Deleted `TCGameMode`'s default constructor and `operator =`
- Deleted `CTFGameMode`'s default constructor and `operator =`
- Replaced `static_cast` with `dynamic_cast` for down-casting
- `RefCountedObject::operator*()` no longer requires non-constness to
  return `T &`.
- Replaced the uses of `std::vector::operator[]` with `std::vector::at`
  for bounds checking.
- Made some methods of `GameMap` `const`.
- Added some null checks.
2019-07-17 00:31:00 +09:00
yvt
2fddc13024 Eliminate compiler warnings
- Possible misuse of comma operators
- `std::move` prevents copy elision
2018-12-31 21:34:30 +09:00
yvt
49cc61c573 Use more smart pointers and modern language constructs 2017-12-15 23:05:08 +09:00
yvt
7d0d8e3704 Create Weapon instances based on the current GameProperties, not a cvar 2017-09-11 20:59:39 +09:00
yvt
f016bd7cee Prepare for an increased number of player slots
Related: #630
2017-09-04 14:39:37 +09:00
yvt
cdd794ed9c Fix crash 2017-02-20 04:09:10 +09:00
yvt
cf1404c8ae Regenerate block’s health after a certain period of time
Fixes #148
2017-02-20 03:30:10 +09:00
Tomoaki Kawada
ebd79c0099 Change #include style
All `#include`s to other subsystem now use angle brackets, e.g., `#include <Core/Math.h>`.
2016-12-03 18:49:07 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
Tomoaki Kawada
6a7af96daf Refactor setting variables 2016-11-19 21:27:13 +09:00
yvt
66627a4de2 Support for third person view and so on. 2015-01-23 18:26:00 +09:00
yvt
867b7cf6bf Really fixed #216 2014-03-30 16:25:17 +09:00
yvt
cf27886b71 Fix #216 2014-03-30 16:05:05 +09:00
yvt
87185910f5 Delayed floating block detection in hopes that #216 is fixed 2014-03-30 04:02:34 +09:00
yvt
be4a9952ce Added hit detection debugger 2014-03-09 01:03:38 +09:00
yvt
8996336063 Merge branch 'master' into newtitle 2013-12-08 23:59:36 +09:00
learn_more
3651097c79 don't create a new vector on calling the function 2013-12-07 17:33:12 +01:00
yvt
a57be59015 Fixed problem that incorrectly destroyed lowest blocks 2013-12-05 16:25:14 +09:00
learn_more
e9f7e3e3e4 vanilla 0.75 behavior 2013-12-03 22:47:50 +01:00
yvt
cf2f9797cc Modified to compile on mingw32, and some fixes 2013-10-31 23:13:38 +09:00
learn_more
2dbfff4e0d highlight hottracked bounding box 2013-10-19 02:00:42 +02:00
yvt
9da577a491 The very first scripting functionality for modding 2013-09-21 04:17:34 +09:00
yvt
709866d6d9 Exported some of renderer interface to script 2013-09-14 12:06:11 +09:00
yvt
30dbb862c6 Added copyright header of pysnip 2013-09-05 00:52:03 +09:00
yvt
f0d34ef494 added GPLv3 header 2013-08-29 11:45:22 +09:00
yvt
2deaf3ffa6 using cvar cg_protocolVersion instead of global variable protoVersion 2013-08-27 16:10:25 +09:00
Ben Russell (300178622)
9e8395a3f0 0.76 protocol support + this SHOULD compile properly for distros which don't have static fltk libs 2013-08-27 12:07:20 +12:00
yvt
931be8cf09 From pre-0.0.3 source code 2013-08-18 16:18:06 +09:00