18 Commits
Author SHA1 Message Date
obligaron 79a43dc1de Introduce AddMissile overloads specific for player and monster 2023-11-26 13:36:28 +01:00
Gleb Mazovetskiy 17f95a04da Migrate missile sprite data to txtdata 2023-11-18 17:33:14 +00:00
ephphatha 415302fdfa Go back to using int for missile frame comparison values
The code that the gmock macros end up generating appears to obscure the type mismatch so there's no warning (in msvc on my system anyway) no matter what types are involved, for clarity the comparison ends up being between std::pair<int, unsigned int> and testing::Pair<int, testing::AllOf<testing::Matchers<unsigned int>>>
2023-11-09 17:42:43 +01:00
obligaron 9bf1fd48b0 Fix a few MSVC warnings (#6782) 2023-11-05 18:23:53 +01:00
ephphatha 328a65424d Add cases for non-arrow missiles 2023-05-10 08:40:01 +02:00
ephphatha f90e969108 Use multiple samples instead of specific seeds to test missile rotations
This is a visual effect, shouldn't need to be repeatable from a specific starting seed (even in multiplayer?)
2023-05-10 08:40:01 +02:00
KPhoenix 8db521727d enum missile_id -> enum class MissileID
Changes `enum missile_id` to `enum class MissileID`
2023-01-18 17:17:25 +00:00
Gleb Mazovetskiy 188dc79f6e Make Players a vector 2022-08-26 13:22:04 +09:00
Cesar Canassa fcdab7f56f ✅ Add test for RotateBlockedMissile (#5069) 2022-07-20 22:53:33 +00:00
ephphatha 9ef77cb428 Use scoped enum for Direction16.
Allows renaming the members to share names with Direction members when
representing the same conceptual direction.
2021-09-12 02:27:47 +02:00
ephphathaandAnders Jenbo 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 <[email protected]>

Fix alignment of WalkSettings array
2021-09-12 02:27:47 +02:00
Vladimir Olteanu 2624d1e62f Introduce Direction16 as enum 2021-06-22 14:53:24 -07:00
Vladimir Olteanu 95643029e3 Refactor missiles.cpp
Use Point wherever possible
Make some functions static (not exhaustive)
Reduce excessive indentation (not exhaustive)
Declare variables as needed (not exhaustive)
2021-06-21 12:10:37 -07:00
Anders Jenbo c11945e62b 🎨 Fix line endings 2021-05-07 23:22:51 +02:00
Anders Jenbo f77c52941a ♻️Make GetDirection take Points instead of ints 2021-04-25 02:25:52 +02:00
Anders Jenbo bd389e9ef6 ♻️ Clean up bool logic in engine.cpp 2021-04-23 02:47:10 +02:00
Anders Jenbo 997c1dba55 🚚 Split up all.h in to proper header relations 2021-04-16 01:04:54 +02:00
Anders Jenbo 53a3657b29 🚚 Move tests to a standard folder 2021-04-10 19:59:50 +02:00