MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / has_note

Method has_note

src/overmap.cpp:2967–2979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2965}
2966
2967bool overmap::has_note( const tripoint_om_omt &p ) const
2968{
2969 if( p.z() < -OVERMAP_DEPTH || p.z() > OVERMAP_HEIGHT ) {
2970 return false;
2971 }
2972
2973 for( const om_note &i : layer[p.z() + OVERMAP_DEPTH].notes ) {
2974 if( i.p == p.xy() ) {
2975 return true;
2976 }
2977 }
2978 return false;
2979}
2980
2981bool overmap::is_marked_dangerous( const tripoint_om_omt &p ) const
2982{

Callers 10

draw_overmap_chunkMethod · 0.45
om_range_markFunction · 0.45
om_line_markFunction · 0.45
draw_minimapMethod · 0.45
vertical_notesMethod · 0.45
keyMethod · 0.45
draw_asciiFunction · 0.45
displayFunction · 0.45
draw_omMethod · 0.45

Calls 2

zMethod · 0.45
xyMethod · 0.45

Tested by

no test coverage detected