… | |
… | |
1859 | object *actives (U32 index) |
1859 | object *actives (U32 index) |
1860 | CODE: |
1860 | CODE: |
1861 | RETVAL = index < actives.size () ? actives [index] : 0; |
1861 | RETVAL = index < actives.size () ? actives [index] : 0; |
1862 | OUTPUT: RETVAL |
1862 | OUTPUT: RETVAL |
1863 | |
1863 | |
|
|
1864 | int mortals_size () |
|
|
1865 | CODE: |
|
|
1866 | RETVAL = attachable::mortals.size (); |
|
|
1867 | OUTPUT: RETVAL |
|
|
1868 | |
1864 | const char *slot_use_name (U32 slot) |
1869 | const char *slot_use_name (U32 slot) |
1865 | ALIAS: |
1870 | ALIAS: |
1866 | slot_nonuse_name = 1 |
1871 | slot_nonuse_name = 1 |
1867 | CODE: |
1872 | CODE: |
1868 | { |
1873 | { |
… | |
… | |
1946 | void apply_below (object *op) |
1951 | void apply_below (object *op) |
1947 | CODE: |
1952 | CODE: |
1948 | player_apply_below (op); |
1953 | player_apply_below (op); |
1949 | |
1954 | |
1950 | int cast_heal (object *op, object *caster, object *spell, int dir = 0) |
1955 | int cast_heal (object *op, object *caster, object *spell, int dir = 0) |
1951 | |
|
|
1952 | #//TODO |
|
|
1953 | object *clone_ (object *op, int recursive = 0) |
|
|
1954 | CODE: |
|
|
1955 | if (recursive) |
|
|
1956 | RETVAL = object_create_clone (op); |
|
|
1957 | else |
|
|
1958 | { |
|
|
1959 | RETVAL = object::create (); |
|
|
1960 | op->copy_to (RETVAL); |
|
|
1961 | } |
|
|
1962 | OUTPUT: RETVAL |
|
|
1963 | |
1956 | |
1964 | int pay_item (object *op, object *buyer) |
1957 | int pay_item (object *op, object *buyer) |
1965 | CODE: |
1958 | CODE: |
1966 | RETVAL = pay_for_item (op, buyer); |
1959 | RETVAL = pay_for_item (op, buyer); |
1967 | OUTPUT: RETVAL |
1960 | OUTPUT: RETVAL |
… | |
… | |
2045 | CODE: |
2038 | CODE: |
2046 | { |
2039 | { |
2047 | RETVAL = insert_ob_in_map_at (ob, where, orig, flag, x, y); |
2040 | RETVAL = insert_ob_in_map_at (ob, where, orig, flag, x, y); |
2048 | } |
2041 | } |
2049 | |
2042 | |
2050 | const_utf8_string get_ob_key_value (object *op, utf8_string key) |
2043 | shstr |
|
|
2044 | object::kv_get (shstr key) |
2051 | |
2045 | |
2052 | bool set_ob_key_value (object *op, utf8_string key, utf8_string value = 0, int add_key = 1) |
2046 | void |
|
|
2047 | object::kv_del (shstr key) |
|
|
2048 | |
|
|
2049 | void |
|
|
2050 | object::kv_set (shstr key, shstr value) |
2053 | |
2051 | |
2054 | object *get_nearest_player (object *ob) |
2052 | object *get_nearest_player (object *ob) |
2055 | ALIAS: nearest_player = 0 |
2053 | ALIAS: nearest_player = 0 |
2056 | PREINIT: |
2054 | PREINIT: |
2057 | extern object *get_nearest_player (object *); |
2055 | extern object *get_nearest_player (object *); |