msu_idx_to_col_address(); /** * Maps the given cell index to the corresponding row address. * * @param idx The index to map. * @return RowAddr The corresponding row address or a '0' value, * if the index cannot be mapped. */ msu_idx_to_row_address(); /** * Maps the given column address to the corresponding cell index. * * @param addr The column address to map. * @return CellIdx The corresponding cell index or 0, * if the address cannot be mapped. */ msu_col_address_to_index(); /** * Maps the given row address to the corresponding cell index. * * @param addr The row address to map. * @return CellIdx The corresponding cell index or 0, * if the address cannot be mapped. */ msu_row_address_to_index(); /** * Maps the given column address to the corresponding cell index. * * @param addr The column address to map. * @return CellIdx The corresponding cell index or 0, * if the address cannot be mapped. */ msu_col_address_to_index(); /** * Provides the character a user may type to perform the given action. * The key must be unique for each action. * * @param action The action for which the corresponding 'key' is requested. * @return char The corresponding 'key' character or '\0', * if the action cannot reasonably be mapped. */ msu_get_action_char(); /** * Provides the action for the given 'key' character (the counterpart of ´msu_get_action_char´). * * @param key The key for the action. * @return Action The action corresponding to the given 'key' * or 'INVALID',if the key cannot be mapped. */ msu_get_action(); /** * Maps the given cell marker to its presentation symbol * (the character shown in the game visualization). * * @param marker The marker. * @return char The corresponding character or '#', if * the marker cannot be mapped. */ msu_get_marker_symbol(); /** * Provides the symbol that represents a mine * (the character shown in the game visualization). * * @return char The symbol of a mine. */ msu_get_mine_symbol(); /** * Maps the given game status to a user presentable label. * * @param status The status to map. * @return char* The text for the status or 0, if * the status cannot be mapped. */ msu_get_status_label();