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

Method Put

win/Qt/qt_click.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24bool NetHackQtClickBuffer::Full() const { return (in+1)%maxclick==out; }
25
26void NetHackQtClickBuffer::Put(int x, int y, int mod)
27{
28 click[in].x=x;
29 click[in].y=y;
30 click[in].mod=mod;
31 in=(in+1)%maxclick;
32}
33
34int NetHackQtClickBuffer::NextX() const { return click[out].x; }
35int NetHackQtClickBuffer::NextY() const { return click[out].y; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected