− | | Converts a string direction (one of <samp>down</samp>, <samp>left</samp>, <samp>right</samp>, or <samp>up</samp>) into a direction code recognized by various game methods. If the string contains a number, the numeric value is returned (even if it's not a valid direction). If it's any other unrecognized value, the method returns -1. | + | | Converts a string direction (one of <samp>down</samp>, <samp>left</samp>, <samp>right</samp>, or <samp>up</samp>) into a direction code recognized by various game methods (''i.e.'' <samp>Game1.down</samp>, etc). If the string contains a number, the numeric value is returned (even if it's not a valid direction). If it's any other unrecognized value, the method returns -1. |