/*-------------------- / Drawing information /---------------------*/ static void wcs_drawMech(BMTYPE **line) { static const char *goalie[] = {" * ", "* ", " *"}; static const char ball[] = {'|','/','-','\\'}; core_textOutf(50, 0,BLACK,"Goalie: [%s]", goalie[core_getSw(swGoalieL) ? 1 : (core_getSw(swGoalieR) ? 2 : 0)]); core_textOutf(50,10,BLACK,"Ball: %c %3d ", ball[mech_getPos(1)], mech_getSpeed(1)); }
int vp_getMech(int mechNo) { #ifdef VPINMAME extern int g_fHandleMechanics; if (g_fHandleMechanics == 0) return (mechNo < 0) ? mech_getSpeed(MECH_MAXMECH/2-1-mechNo) : mech_getPos(MECH_MAXMECH/2-1+mechNo); else #endif return core_gameData->hw.getMech ? core_gameData->hw.getMech(mechNo) : 0; }
/* 1 = ball speed */ static int wcs_getMech(int mechNo) { return mechNo ? mech_getSpeed(1) : mech_getPos(0); }