/** * Standard and motorized SCUBA only differ in base movement, so they both use * INF_UMU. If the motion_type contains the string "motorized", * the movement is set here instead. */ public void setMotorizedScuba() { setMovementMode(EntityMovementMode.INF_UMU); setOriginalJumpMP(2); }
/** * Generate a new, blank, infantry platoon. Hopefully, we'll be loaded from * somewhere. */ public Infantry() { // Instantiate the superclass. super(); // Create a "dead" leg rifle platoon. menStarting = 0; menShooting = 0; men = 0; setMovementMode(EntityMovementMode.INF_LEG); // Determine the number of MPs. setOriginalWalkMP(1); }
t.setMotorizedScuba(); } else { t.setMovementMode(nMotion);