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
Anders Jenbo
3a1a44de34
Fix and clean up AddDoppelganger
5 years ago
Andrew James
20190ee687
Update random number functions to avoid IB ( #2226 )
...
* Update random number functions to avoid IB
Most calls to set seed were using uint32_t already, there were a few variables which were better served by having their type changed from signed to unsigned. The one exception is ItemStruct::_iSeed. This is an identifier that also happens to be used as a seed occasionally so a comment was added documenting this exception.
Includes suggested style changes for Source/towners.h; Source/towners.cpp; Source/msg.h; Source/multi.h
5 years ago
obligaron
cada4a5ac4
Introduce MonsterStruct.IsWalking()
5 years ago
obligaron
3c9314fa0a
Remove MonsterStruct.actionFrame and enable ADL for Walking
5 years ago
obligaron
317a6ee82c
Introduce MonsterStruct::Petrify
5 years ago
obligaron
b0ed920a25
Introduce AnimationInfo to MonsterStruct
5 years ago
Gleb Mazovetskiy
e40b1963f9
🚚 engine.h: Extract `CelSprite` and file loading
5 years ago
Gleb Mazovetskiy
dcf3397139
🚚 engine.h: Extract `ActorPosition`
5 years ago
Gleb Mazovetskiy
f9f301b054
🚚 engine.h: Extract `Point`, `Direction`, `clamp`
...
`engine.h` is getting quite bloated. Moves this code to their own files.
5 years ago
obligaron
b5ad92eb2c
Convert _mAnimData to CelSprite
5 years ago
obligaron
40faa6e186
Introduce MonsterStruct::CheckStandAnimationIsLoaded
5 years ago
Juliano Leal Goncalves
4668a526eb
♻️ Leverage 'Point' struct on monster functions ( #2056 )
5 years ago
Juliano Leal Goncalves
0d4e792551
♻️ Change 'SetMapMonsters' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
944ff6fb78
♻️ Change 'InitMonster' to take a 'Point' instead of 2 separate ints
5 years ago
Juliano Leal Goncalves
dd9e05222d
♻️ Change 'PosOkPlayer' to take a 'Point' instead of 2 separate ints
5 years ago