Angband 3.0.9b.
[angband.git] / src / randname.h
blob705846be4a32ed01dbc3af4da357943abb3d9202
1 /*
2 * File: randname.h
3 * Purpose: Random name generation
4 * Based on W. Sheldon Simms name generator originally in randart.c
6 * Copyright (c) 2007 Antony Sidwell and others
8 * This work is free software; you can redistribute it and/or modify it
9 * under the terms of either:
11 * a) the GNU General Public License as published by the Free Software
12 * Foundation, version 2, or
14 * b) the "Angband licence":
15 * This software may be copied and distributed for educational, research,
16 * and not for profit purposes provided that this copyright and statement
17 * are included in all such copies. Other copyrights may also apply.
20 #ifndef INCLUDED_RANDNAME_H
21 #define INCLUDED_RANDNAME_H
23 /* The different types of name make_word can generate */
24 typedef enum
26 RANDNAME_TOLKIEN = 1,
27 RANDNAME_SCROLL,
29 /* End of type marker - not a valid name type */
30 RANDNAME_NUM_TYPES
31 } randname_type;
34 extern size_t randname_make(randname_type name_type, size_t min, size_t max, char *word_buf, size_t buflen);
36 #endif /* INCLUDED_RANDNAME_H */