qndel
c05c4c0f55
fix typos
4 years ago
Anders Jenbo
e348fa3b1e
Implement town map
4 years ago
Anders Jenbo
f9fae00958
Fix formatting
4 years ago
zaid-ismail031
b0c9a8024e
Refactor missiles.cpp to use Direction enum instead of magic Point/Displacement constants.
4 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
4 years ago
obligaron
2493f06116
ActorPosition: Remove offset, offset2 and velocity
4 years ago
obligaron
a410e989bf
Remove ScrollInfo
4 years ago
Vladimir Olteanu
77353d2db9
Turn AmLine* into inline function
4 years ago
Anders Jenbo
d1189388f5
Use user by reference
4 years ago
Anders Jenbo
f6f05da485
Clean up game name and password variables
4 years ago
Gleb Mazovetskiy
04c3d85179
Remove `MAX_PATH`
...
Rather than using the Windows-like `MAX_PATH`, what we really want is 2
things:
1. Maximum path of a file in an MPQ. This is now `MaxMpqPathSize`.
2. Max size for the known monster paths. This is now 64 for sounds and
TRNs, which is more than enough (picked arbitrarily).
4 years ago
Gleb Mazovetskiy
643c707c55
Remove strncmp
4 years ago
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
4 years ago
Cesar Canassa
6579aa53c5
Normalise the player and monster walking function naming ( #4877 )
...
Both player and monster walking functions are not named WalkNorthwards, WalkSouthwards and WalkSideways.
Also renames the PLT_MODE enum to follow the same pattern and removes the comments that are now unnecessary
4 years ago
Anders Jenbo
72656b3011
Move path and palette to the engine folder
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
obligaron
19749420b5
Introduce Player::isOnActiveLevel
4 years ago
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
4 years ago
Gleb Mazovetskiy
779ccaca17
Overhaul translation fetching
...
1. Do not modify the map after loading. Instead, return string views
(guaranteed to be null-terminated) from look up functions and return
the key directly if not found.
2. Use an `unorded_map` instead of `map` where available (C++20).
Saves a bit of RAM (~50 KiB) and improves lookup performance.
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
obligaron
bc15bdf3a9
Remove PANEL_ defines and replace them with GetMainPanel()
4 years ago
obligaron
1124dd1bd2
Don't show hostile players in automap
4 years ago
obligaron
70c5cf6cad
Fix item label text with open stash ( #4595 )
...
* Item labels: check if stash is open in IsMouseOverGameArea
* Add IsLeft/RightPanelOpen
4 years ago
Anders Jenbo
0645d9b2a1
Correct missing hellfire level mapping in leveltype
...
Hellfire never added the 2 new dungion types, instead it makes
additional checks on currlevel. This is confusing and mess, so cleaned
it up.
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
KPhoenix
d544a467e6
Show game Difficulty in Automap ( #3867 )
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
qndel
7250aeae66
tweak automap colors
4 years ago
Anders Jenbo
b9b4b9eea0
Fix OOB in DrawAutomapTile
4 years ago
qndel
e567953bc9
Sharing automap exploration in multiplayer
4 years ago
staphen
ffbbcc6d62
Support unencrypted multiplayer games with no password
4 years ago
qndel
9f7c69f4f5
improve southeast arrow
5 years ago
qndel
560066585a
center automap arrow
5 years ago
qndel
6bd48907e0
fix jumping arrow
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
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
Juliano Leal Goncalves
940a120bf9
♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition'
5 years ago
Anders Jenbo
df636c0afc
Remove DIR_OMNI
5 years ago
Anders Jenbo
23fdb5aa27
[vanilla] Fix missing dirt corners in automap
5 years ago
Anders Jenbo
0b68a8b2d3
Fix missing dirt tiles in automap
5 years ago
Andrew James
8d9c46290d
Automap: Scoped enums and wrappers to minimise bitwise operations ( #2534 )
5 years ago
Anders Jenbo
26756b82dc
♻️ Split up DrawAutomapTile
5 years ago
Anders Jenbo
f2d858af4b
Cleanup magic numbers in automap.cpp
5 years ago
obligaron
cb62e7bf2d
Fix automap jiggling for player arrow
5 years ago
obligaron
dae9d7eff5
Enable ADL (GetOffsetForWalking) for automap
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago