MCPcopy Index your code
hub / github.com/NetHack/NetHack / obj_has_timer

Function obj_has_timer

src/timeout.c:2403–2409  ·  view source on GitHub ↗

* Check whether object has a timer of type timer_type. */

Source from the content-addressed store, hash-verified

2401 * Check whether object has a timer of type timer_type.
2402 */
2403boolean
2404obj_has_timer(struct obj *object, short timer_type)
2405{
2406 long timeout = peek_timer(timer_type, obj_to_any(object));
2407
2408 return (boolean) (timeout != 0L);
2409}
2410
2411/*
2412 * Stop all timers of index func_index at this spot.

Callers 4

l_obj_timer_hasFunction · 0.85
l_obj_timer_startFunction · 0.85
revive_monFunction · 0.85
its_deadFunction · 0.85

Calls 2

peek_timerFunction · 0.85
obj_to_anyFunction · 0.85

Tested by

no test coverage detected