Why not
Code:
class robot_pwn: ur_robot
{
void movE( int n );
};
void robot_pwn :: movE( int n )
{
int i
for(i=0; i <= n; i++)
{
move( );
}
}
I hope this is the correct syntax, but you get the idea. You pass the number of "moves" you want to a function and it loops through the move funtion for that number of times. You wouldn't need a bunch of functions and be limited to 15 moves. You could put (depending on the compiler's limits) put 10,000 moves. You can then add whatever else, like turnRight(int degree); and turnLeft(int degree); for how far you want to turn.