adjust_amount |
Discworld cont_medium help |
adjust_amount |
Name
adjust_amount - The change the amount of this stuff.
Syntax
void adjust_amount(int amount);
Description
Changes the amount of the stuff in question. This is the number of things of the continuous medium.
Eg: If you had 20 marbles and marbles were handled as a continuous medium, this would return 20.
Example
/* Add another 200 grains of rice */
rice->adjust_amount(200);
See also
query_amount, set_weight_unit, query_weight_unit, set_amount