This returns the base name of the method. Note that this may be an empty string, for example in Little Bob.
This sets the base name of the method to name.
This returns the number of bells on which the method is defined.
This returns the number of changes in a lead of the method.
These utility functions add a change to the end of the method. In the first case, c is the change to be added; in the second case, s is place notation for the change to be added.
This returns true if the method is symmetrical about the half lead (and has an even number of changes in the lead), or false otherwise.
This returns true if the method is double, or false otherwise. Note that double does not imply symmetrical.
This returns true if the method is regular (that is, has Plain Bob lead heads), or false otherwise.
This returns the number of hunt bells in the method.
This returns the number of leads in the plain course of the method.
This returns the standard code for the lead end and lead head of the method. The result is stored in a static internal buffer.
This returns true if the path of bell b in a lead of the method is symmetrical about the half lead, or false otherwise.
This returns true if bell b plain hunts for the whole lead of the method, or false otherwise.
This returns true if bell b dodges during the lead, or false otherwise.
This returns true if bell b makes any internal places during the lead, or false otherwise.
This function returns an integer which depends on the class of the method. The following values are defined:
enum method::m_class { M_UNKNOWN, M_PRINCIPLE, M_BOB, M_PLACE, M_TREBLE_BOB, M_SURPRISE, M_DELIGHT, M_TREBLE_PLACE, M_ALLIANCE, M_HYBRID, M_SLOW_COURSE, M_MASK = 0x0f, M_DIFFERENTIAL = 0x10, M_LITTLE = 0x80 };The
M_DIFFERENTIAL
andM_LITTLE
bits are flags which will be either set or cleared accordingly. (For the purpose of this function, “Differential” is considered a method class. Differential hunters will have theM_DIFFERENTIAL
bit set, together with one of the other classes; differential methods will returnM_DIFFERENTIAL | M_PRINCIPLE
.)
This function places the full name of the method in buffer, which should be long enough to receive it, and returns a pointer to it. The full name consists of:
- the base name of the method;
- the word “Little”, if appropriate;
- the class of the method, or none if it is a principle;
- the stage (number of bells) of the method.
Note that Grandsire, Union and their related methods are treated specially: the full name of these methods does not include their class, nor in the case of Little Grandsire does it contain “Little”.