@@ -344,7 +344,7 @@ auto level_get_thing_id_at(Gamep /*g*/, Levelsp /*v*/, Levelp l, const bpoint &p
344344//
345345// Additional level flag filters e.g. open doors are not obstacles
346346//
347- [[nodiscard]] static auto level_flag_filter (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me, Thingp it) -> bool
347+ [[nodiscard]] static auto level_flag_filter (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp me, Thingp it) -> bool
348348{
349349 TRACE_DEBUG ();
350350
@@ -411,14 +411,14 @@ auto level_get_thing_id_at(Gamep /*g*/, Levelsp /*v*/, Levelp l, const bpoint &p
411411//
412412// Additional level flag filters e.g. open doors are not obstacles
413413//
414- [[nodiscard]] static auto level_flag_filter_needed (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> bool
414+ [[nodiscard]] static auto level_flag_filter_needed (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp me) -> bool
415415{
416416 Thingp it = nullptr ;
417417
418418 return level_flag_filter (g, v, l, f, me, it);
419419}
420420
421- auto level_find_all (Gamep g, Levelsp v, Levelp l, ThingFlag f) -> std::vector< Thingp >
421+ auto level_find_all (Gamep g, Levelsp v, Levelp l, ThingFlagType f) -> std::vector< Thingp >
422422{
423423 TRACE ();
424424
@@ -449,7 +449,7 @@ auto level_find_all(Gamep g, Levelsp v, Levelp l, ThingFlag f) -> std::vector< T
449449 return out;
450450}
451451
452- auto level_find_all (Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p) -> std::vector< Thingp >
452+ auto level_find_all (Gamep g, Levelsp v, Levelp l, ThingFlagType f, bpoint p) -> std::vector< Thingp >
453453{
454454 TRACE ();
455455
@@ -497,14 +497,14 @@ void level_update_flags(Gamep g, Levelsp v, Levelp l)
497497 }
498498}
499499
500- auto level_flag_cached (Gamep /* g*/ , Levelsp /* v*/ , Levelp l, ThingFlag f, bpoint p) -> bool
500+ auto level_flag_cached (Gamep /* g*/ , Levelsp /* v*/ , Levelp l, ThingFlagType f, bpoint p) -> bool
501501{
502502 TRACE_DEBUG ();
503503
504504 return l->flag [ p.x ][ p.y ][ f ] != 0 ;
505505}
506506
507- auto level_flag (Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me) -> Thingp
507+ auto level_flag (Gamep g, Levelsp v, Levelp l, ThingFlagType f, bpoint p, Thingp me) -> Thingp
508508{
509509 TRACE_DEBUG ();
510510
@@ -533,7 +533,7 @@ auto level_flag(Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me)
533533 return nullptr ;
534534}
535535
536- auto level_flag (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
536+ auto level_flag (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp me) -> Thingp
537537{
538538 TRACE ();
539539
@@ -548,7 +548,7 @@ auto level_flag(Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
548548//
549549// Filter to only alive things
550550//
551- auto level_alive (Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me) -> Thingp
551+ auto level_alive (Gamep g, Levelsp v, Levelp l, ThingFlagType f, bpoint p, Thingp me) -> Thingp
552552{
553553 TRACE ();
554554
@@ -584,7 +584,7 @@ auto level_alive(Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me)
584584 return nullptr ;
585585}
586586
587- auto level_alive (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
587+ auto level_alive (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp me) -> Thingp
588588{
589589 TRACE ();
590590
@@ -599,7 +599,7 @@ auto level_alive(Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
599599//
600600// Flag + is open
601601//
602- auto level_open (Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me) -> Thingp
602+ auto level_open (Gamep g, Levelsp v, Levelp l, ThingFlagType f, bpoint p, Thingp me) -> Thingp
603603{
604604 TRACE ();
605605
@@ -635,7 +635,7 @@ auto level_open(Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p, Thingp me)
635635 return nullptr ;
636636}
637637
638- auto level_open (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
638+ auto level_open (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp me) -> Thingp
639639{
640640 TRACE ();
641641
@@ -650,7 +650,7 @@ auto level_open(Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp me) -> Thingp
650650//
651651// Count things
652652//
653- auto level_count (Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p) -> int
653+ auto level_count (Gamep g, Levelsp v, Levelp l, ThingFlagType f, bpoint p) -> int
654654{
655655 TRACE ();
656656
@@ -690,7 +690,7 @@ auto level_count(Gamep g, Levelsp v, Levelp l, ThingFlag f, bpoint p) -> int
690690 return count;
691691}
692692
693- auto level_count (Gamep g, Levelsp v, Levelp l, ThingFlag f, Thingp t) -> int
693+ auto level_count (Gamep g, Levelsp v, Levelp l, ThingFlagType f, Thingp t) -> int
694694{
695695 TRACE ();
696696
0 commit comments