22 Commits

Author SHA1 Message Date
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
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00:00
yvt
7d0d8e3704 Create Weapon instances based on the current GameProperties, not a cvar 2017-09-11 20:59:39 +09:00
yvt
23231dd2a4 Fix some crashes 2017-02-22 08:19:14 +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
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
VelocityRa
0f5b4dab56 Display Spectators in Scoreboard 2016-11-30 22:52:28 +02:00
yvt
66627a4de2 Support for third person view and so on. 2015-01-23 18:26:00 +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
learn_more
3651097c79 don't create a new vector on calling the function 2013-12-07 17:33:12 +01:00
learn_more
7bc571f819 size_t instead of int (cannot have negative number of players :)
cleanup some formatting (more readable)
2013-11-22 23:09:16 +01:00
learn_more
986a53bec8 fix refcounted object
cleanup headers usage (don't include everything in base classes, just include what's needed in .cpp)
2013-11-16 01:34:37 +01:00
learn_more
2dbfff4e0d highlight hottracked bounding box 2013-10-19 02:00:42 +02:00
learn_more
d41b91631f fix a shitton of warnings 2013-09-20 23:03:32 +02:00
yvt
30dbb862c6 Added copyright header of pysnip 2013-09-05 00:52:03 +09:00
learn_more
61f27c2546 always initialize int :( 2013-08-30 23:56:48 +02: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