MCPcopy Create free account
hub / github.com/SimHacker/micropolis / testBounds

Function testBounds

MicropolisCore/src/MicropolisEngine/src/micropolis.h:2564–2567  ·  view source on GitHub ↗

* Check that the given coordinate is within world bounds * @param wx World x coordinate * @param wy World y coordinate * @return Boolean indicating (wx, wy) is inside the world bounds */

Source from the content-addressed store, hash-verified

2562 * @return Boolean indicating (wx, wy) is inside the world bounds
2563 */
2564 static inline bool testBounds(int wx, int wy)
2565 {
2566 return (wx >= 0 && wx < WORLD_W && wy >= 0 && wy < WORLD_H);
2567 };
2568
2569 void spend(int dollars);
2570

Callers 15

doBridgeMethod · 0.85
doFireMethod · 0.85
fireZoneMethod · 0.85
repairZoneMethod · 0.85
doMeltdownMethod · 0.85
getTileMethod · 0.85
setTileMethod · 0.85
smoothRiverMethod · 0.85
smoothTreesAtMethod · 0.85
doBRiverMethod · 0.85
doSRiverMethod · 0.85
putOnMapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected