root/trunk/src/effects.h

Revision 918, 1.0 kB (checked in by takkaria, 5 months ago)

Use consistent newlines everywhere, and also set the svn:eol-style property to native on all text files.

  • Property svn:eol-style set to native
Line 
1 /*
2  * File: effects.h
3  * Purpose: List of effect types
4  *
5  * Copyright (c) 2007 Andrew Sidwell
6  *
7  * This work is free software; you can redistribute it and/or modify it
8  * under the terms of either:
9  *
10  * a) the GNU General Public License as published by the Free Software
11  *    Foundation, version 2, or
12  *
13  * b) the "Angband licence":
14  *    This software may be copied and distributed for educational, research,
15  *    and not for profit purposes provided that this copyright and statement
16  *    are included in all such copies.  Other copyrights may also apply.
17  */
18 #ifndef INCLUDED_EFFECTS_H
19 #define INCLUDED_EFFECTS_H
20
21 /* Types of effect */
22 typedef enum
23 {
24         #define EFFECT(x, y, z)         EF_##x,
25         #include "list-effects.h"
26         #undef EFFECT
27
28         EF_MAX
29 } effect_type;
30
31 /*** Functions ***/
32
33 bool effect_do(effect_type effect, bool *ident, bool aware, int dir, int beam);
34 bool effect_aim(effect_type effect);
35 const char *effect_desc(effect_type effect);
36 bool effect_obvious(effect_type effect);
37
38 #endif /* INCLUDED_EFFECTS_H */
Note: See TracBrowser for help on using the browser.