C++ C4AI generateMask instead of hardcode