obligaron
ccaf8d1dac
Use uint8_t in msg/multi/sync and fix MSVC warnings ( #6856 )
...
* Fix MSVC warnings in msg.cpp
* Move TBuffer to multi.cpp
* Fix MSVC warnings in multi.cpp
* SNet* change databytes to size_t
* msg/muli/sync: Change playerId to uint8_t
2 years ago
obligaron
81d738e303
Introduce Monster::occupyTile
2 years ago
Gleb Mazovetskiy
74755c8be7
Remove utils/stdcompat/cstddef.hpp
3 years ago
Anders Jenbo
67ea5bcbe6
Sync monster light when position is gotten from the network
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
staphen
d18c75bd05
Don't send monster data while warping
3 years ago
Gleb Mazovetskiy
ca69237d59
Big-endian support for multiplayer
...
Not sure if this works but it's a start
3 years ago
obligaron
544be10669
Don't sync monsters while level changing
3 years ago
Anders Jenbo
872456ae5d
Use size_t for a select few pnum variables
4 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
Andrew James
d9d1385f6c
Take const reference in DirOK ( #4985 )
4 years ago
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters `size_t`
4 years ago
Cesar Canassa
4d5aa90d77
♻️ Refactor M_WalkDir
...
- 🔥 Removed DumbWalk
- 🚚 Renames M_WalkDir to Walk
This integrates the DirOK check into M_WalkDir itself, that makes the DumbWalk function useless and most places that were calling DirOK before M_WalkDir can now be simplified.
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
ephphatha
2da2ea7b03
Take monster reference in M_ClearSquares
4 years ago
Cesar Canassa
eb2740c7b6
♻️ change M_WalkDir to receive a Monster reference ( #4875 )
4 years ago
Mikołaj Piróg
2e7ff45fbf
Monster global constants cleanup ( #4827 )
...
* Change #defines to constexpr const, add constexpr where applicable, fix typos
4 years ago
Anders Jenbo
ba4ee58c9f
Pass along bools instead of player index
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
obligaron
e151274fdf
Introduce IsValidLevel
4 years ago
obligaron
22a113d3a6
Introduce GetLevelForMultiplayer
4 years ago
staphen
a2fe3a981e
Fix issues with ears due to translation
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
Anders Jenbo
f5872005a4
Avoid resetting monster health and mWhoHit
4 years ago
staphen
eea5a94ab3
Don't sync position on dead monsters
4 years ago
qndel
b00feb4c3d
sync monster mWhoHit and hitpoints
4 years ago
Anders Jenbo
615a9a46cf
Sync monster aggro state
4 years ago
Anders Jenbo
5b3ac35fad
Validate 2 more network messages
5 years ago
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
5 years ago
Juliano Leal Goncalves
fe95e36d90
🎨 Leverage 'IsAnyOf' on monster mode checks
5 years ago
Juliano Leal Goncalves
1cd62bbc64
🚚 Rename 'MonsterMode' members for semantic and consistency
5 years ago
Juliano Leal Goncalves
69a7cb66d4
♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class
5 years ago
Juliano Leal Goncalves
314ae59828
♻️ Leverage 'IsWalking' function for monster walking checks
5 years ago
Anders Jenbo
7effa1a931
Merge pull request #2433 from diasurgical/player
5 years ago
Anders Jenbo
de0b3a38b8
Apply code style
5 years ago
Anders Jenbo
e5fc7fd17c
Move remaning symbols in to anonymous namespaces
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
c8870dbd1f
Rename item globals
5 years ago
Anders Jenbo
07ad083fda
Rename monster globals
5 years ago
Anders Jenbo
bc0d1f7ac0
clang-tidy/Android Stuidio cleanups 3
5 years ago
Anders Jenbo
a350fb0b15
Clang-tidy: FunctionCase part 1
5 years ago
Anders Jenbo
0f2ad469ea
♻️ Clean up variable initialization
5 years ago
Anders Jenbo
ec8d7bebe2
Clang-tidy: modernize-use-auto
5 years ago
Anders Jenbo
19d980582f
Clang-tidy: readability-static-definition-in-anonymous-namespace
5 years ago
Anders Jenbo
22b632f04a
♻️ Clean up implicit bool conversions
5 years ago
Vladimir Olteanu
76269b95ee
Use WalkingDistance in sync_monster
5 years ago
Vladimir Olteanu
690211a699
replace Point::Absolute with abs
5 years ago
Vladimir Olteanu
53603da836
Use Point::Absolute in sync_monster
5 years ago
Vladimir Olteanu
16e78bb559
Use ManhattanDistance in sync_monster
5 years ago