diff options
author | Fate <fate-tmw@googlemail.com> | 2008-11-29 19:18:22 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2008-11-29 19:18:22 -0700 |
commit | 5eef103593c0fc649ed3db92fa104b1f7e5906d3 (patch) | |
tree | c9f62e32f950c79a28bf9ad6f6693eaa89f9839d /doc/spell-language | |
parent | 7eb238fac9043bc9e850b5e881caa59d99f8c97a (diff) | |
download | tmwa-5eef103593c0fc649ed3db92fa104b1f7e5906d3.tar.gz tmwa-5eef103593c0fc649ed3db92fa104b1f7e5906d3.tar.bz2 tmwa-5eef103593c0fc649ed3db92fa104b1f7e5906d3.tar.xz tmwa-5eef103593c0fc649ed3db92fa104b1f7e5906d3.zip |
Added SLang commands `map_level', `map_nr', `dir_towards'
Diffstat (limited to 'doc/spell-language')
-rw-r--r-- | doc/spell-language | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/spell-language b/doc/spell-language index c19b1d7..5b0e5bb 100644 --- a/doc/spell-language +++ b/doc/spell-language @@ -536,6 +536,20 @@ The following functions are available: + sqrt : int -> int Computes the square root of the specified number + + map_level : location -> int + Determines the map level: 0 for outside, 1 for inside, 2ff for + dungeon levels (going down) + + + map_nr : location -> int + Computes the map number. Map number and map level together uniquely + identify a map. + + + dir_towards : location * location * int -> dir + dir_towards(start, end, flag) computes the direction from `start' to + `end'. If flag is zero, directions are limited to N, S, E, W; + otherwise NE, SE, NW, SW will also be used. The two locations must be + on the same map. + Operations: ----------- This section documents the operations API. |