Anders Jenbo
a0949b98fc
asd
4 years ago
Anders Jenbo
1c286b5624
Directly call StartMonsterDeath instead of feeding M_StartKill invalid input
4 years ago
Anders Jenbo
f5e7a98fbf
Avoid using -1 as a discriminator
4 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
Anders Jenbo
d6b258926e
Apply type checking on monster type
4 years ago
k-bar
5b29eda518
Remove of CheckMonsterHit (aka LiftGargoylesAndIgnoreMages)
4 years ago
k-bar
417c4c9ce2
Extract duplicated code to functions related to monster
4 years ago
staphen
32311d4835
Fix Diablo's HP
4 years ago
Gleb Mazovetskiy
f4bce38875
Use `uint16_t` for sprite widths
4 years ago
Gleb Mazovetskiy
7fede6c4cb
Clean up owned/unowned CelSprite ambiguity
...
Makes `CelSprite` unowned and adds a new `OwnedCelSprite` class for
owned sprites.
This clarifies ownership and makes the code cleaner in a number of
places.
Additionally, because the `CelSprite` class is now tiny (1 less
pointer), we can pass it by-value instead of by-reference, removing a
pointer indirection in the rendering functions.
4 years ago
qndel
d3995736b9
fix spawning unique monsters
4 years ago
qndel
9ba64ad08b
TRN rewrite + bugfix ( #4056 )
...
* working new TRN system
* apply TRNs to all unique missiles
4 years ago
Gleb Mazovetskiy
48ff656dc0
Load monster graphics into a single buffer
...
Follow-up to a5e1fa5bbe , which loaded
the missiles into a single buffer.
4 years ago
staphen
bd0470994a
Initialize golems before objects
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Anders Jenbo
2708b16c05
Validate CMD_SYNCDATA ( #2968 )
5 years ago
obligaron
2123edbca7
Fix compiling wiht NOSOUND definied
5 years ago
staphen
60492ef954
Add proper graphics for gamepad
5 years ago
Siddharth singh chouhan
ba161f623e
Move documentation from implementations to declarations. ( #2858 )
5 years ago
ephphatha
67ecea1a42
Always set the monster animation when ChangeAnimationData is called
...
Required updating AnimationInfo to handle being passed 0 for the total framecount, previously it would call clamp with min > max which was invalid.
5 years ago
ephphatha
8e155e011f
Rename helpers on Monster to match AnimationInfo
5 years ago
ephphatha
956dcc7fc9
Add helper for selecting animation sprites from Direction
...
The use on PlayerAnimationData could be further simplified by adding a helper to PlayerStruct but that'd be introducing another changed file to the PR... Something for later.
The monster version is only used once thanks to the helpers added in previous commits. This was mainly to highlight the similarity between PlayerAnimationData and AnimStruct, AnimStruct could inherit/extend PlayerAnimationData without much trouble.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Juliano Leal Goncalves
5430672477
🚚 Rename 'UniqMonstStruct' struct to 'UniqueMonsterData' ( #2814 )
5 years ago
Juliano Leal Goncalves
db1026fa39
🚚 Rename 'MonsterDataStruct' to 'MonsterData'
5 years ago
Juliano Leal Goncalves
6e1d05187e
🚚 Rename 'MissileStruct' to 'Missile'
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
5 years ago
Juliano Leal Goncalves
1cd62bbc64
🚚 Rename 'MonsterMode' members for semantic and consistency
5 years ago
Juliano Leal Goncalves
154a033e33
♻️ Remove unnecessary explicit underlying type on 'MonsterMode'
5 years ago
Juliano Leal Goncalves
69a7cb66d4
♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class
5 years ago
Anders Jenbo
7cb73a6717
Minimize impact of NOSOUND
5 years ago
BC Ko
373adcf65b
modify AddMissile() parameters and remove Missiles[] in MissToMonst()
5 years ago
BC Ko
4834905eac
remove Missiles[] in SpawnGolem()
5 years ago
Anders Jenbo
9a6820493f
No missile golem
...
Simplify spawning golem, the golem will now spawn in the same tick
instead of next tick
5 years ago
obligaron
91c8503ea5
Rename leaderflag to leaderRelation and MonsterRelation to LeaderRelation
5 years ago
Anders Jenbo
2d4da488f0
Split path test functions
5 years ago
ephphatha
488ee03f53
Use bound functions for LineClear test function pointer
5 years ago
Anders Jenbo
4e82c70fcb
Make MonsterIsTileAccessible aware if monsters can open doors or not
5 years ago
Anders Jenbo
a089692850
💄 Introduce MonsterRelation enum
5 years ago
Anders Jenbo
77b72da276
♻️ Use monster by reference when possible
5 years ago
Anders Jenbo
ef6275caac
Clean up private function names
5 years ago
Anders Jenbo
4bf4e42230
Move local symbols to anonymous namespace
5 years ago
obligaron
54d63e2edd
Change AnimationInfo.pCelSprite to const
5 years ago
obligaron
3e57d0d69b
Introduce MonsterGraphic enum class
5 years ago
obligaron
5f7a2803fc
Introduce CMonster::GetAnimData
5 years ago
obligaron
02d2754a68
MAI Garbud/Zhar/SnotSpill/Lazurus/Lachdanan/Warlord
...
Change _mdir in CheckStandAnimationIsLoaded (and only in stand).
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
ecea12fc15
Clang-tidy: ParameterCase
5 years ago
Anders Jenbo
129342d07a
Clang-tidy: GlobalConstantCase
5 years ago