MCPcopy Create free account
hub / github.com/NetHack/NetHack / getpos_getvalids_selection

Function getpos_getvalids_selection

src/getpos.c:101–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101staticfn void
102getpos_getvalids_selection(
103 struct selectionvar *sel,
104 boolean (*validf)(coordxy, coordxy))
105{
106 coordxy x, y;
107
108 if (!sel || !validf)
109 return;
110
111 for (x = 1; x < sel->wid; x++)
112 for (y = 0; y < sel->hei; y++)
113 if ((*validf)(x, y))
114 selection_setpoint(x, y, sel, 1);
115}
116
117static const char *const gloc_descr[NUM_GLOCS][4] = {
118 { "any monsters", "monster", "next/previous monster", "monsters" },

Callers 1

getpos_sethiliteFunction · 0.85

Calls 1

selection_setpointFunction · 0.85

Tested by

no test coverage detected