Name: query_level - get the level from a living

Syntax:
       #include <levels.h>
       int query_level()

Description:
       The query_level call returns the current level of a player. Possible
       defines for levels are listed in /include/levels.h and should be
       used to stay compatible.

Return value: An integer specifying the level of the living

Examples:
       int level;
       level=this_player()->query_level();
       if (level > LEVEL_WIZARD) /* some specific action */

See also: monster/set_level