21 Commits

Author SHA1 Message Date
yvt
5db97f7f10
clang-format 2019-07-17 00:31:22 +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
660066fc2f Rewrite the camera control logic
- Fixes #664
- Fixes #520
2017-12-05 15:42:24 +09:00
yvt
2b230c0598 Fix #254 2017-02-20 04:00:08 +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
yvt
6b1eff6726 git add map weapon icons 2015-06-20 17:14:05 +09:00
yvt
bfcf96ad13 Fix #73 2014-03-30 01:42:18 +09:00
yvt
cf8d4f3cb0 Alerts 2014-03-11 03:42:04 +09:00
yvt
be4a9952ce Added hit detection debugger 2014-03-09 01:03:38 +09:00
yvt
30dbb862c6 Added copyright header of pysnip 2013-09-05 00:52:03 +09:00
yvt
ccd71bbfb0 Velocity is updated when NetClient receives WorldUpdate 2013-09-03 01:24:03 +09:00
yvt
c13ebe66fc Work-around for reload-related protocol issue 2013-09-02 17:36:08 +09:00
yvt
2ebb66f099 Easier to place block under the feet 2013-09-01 16:06:54 +09:00
yvt
ab903f285c * Spade/block's reach fixed 2013-09-01 14:33:37 +09:00
yvt
55dd4a259f Player no longer can place a block that overlaps with itself 2013-08-31 13:17:35 +09:00
yvt
e9f4660579 now uses ammo/stock value that server sends 2013-08-31 02:50:51 +09:00
yvt
974c435b51 * Delayed tool switching
* Automatic tool switching when player have no ammo/blocks/grenades
2013-08-31 01:12:45 +09:00
yvt
f0d34ef494 added GPLv3 header 2013-08-29 11:45:22 +09:00
yvt
361c4df347 * Added grenade throw animation
* Added dig animation
2013-08-21 01:53:14 +09:00
yvt
931be8cf09 From pre-0.0.3 source code 2013-08-18 16:18:06 +09:00