Angband
obj-curse.h
Go to the documentation of this file.
1 
18 #ifndef INCLUDED_OBJ_CURSE_H
19 #define INCLUDED_OBJ_CURSE_H
20 
21 #include "object.h"
22 
23 extern struct curse *curses;
24 
25 void init_curse_knowledge(void);
26 int lookup_curse(const char *name);
27 void copy_curses(struct object *obj, int *source);
28 bool curses_are_equal(const struct object *obj1, const struct object *obj2);
29 bool append_object_curse(struct object *obj, int pick, int power);
30 bool append_artifact_curse(struct artifact *art, int pick, int power);
31 bool do_curse_effect(int i);
32 
33 #endif /* !INCLUDED_OBJ_CURSE_H */
bool curses_are_equal(const struct object *obj1, const struct object *obj2)
Check whether two objects have the exact same curses.
Definition: obj-curse.c:75
bool do_curse_effect(int i)
Do a curse effect.
Definition: obj-curse.c:180
png_uint_32 i
Definition: libpng12/png.h:2821
void copy_curses(struct object *obj, int *source)
Copy all the curses from a template to an actual object.
Definition: obj-curse.c:50
bool append_object_curse(struct object *obj, int pick, int power)
Append a given curse with a given power to an object.
Definition: obj-curse.c:120
void init_curse_knowledge(void)
int lookup_curse(const char *name)
Return the index of the curse with the given name.
Definition: obj-curse.c:32
bool append_artifact_curse(struct artifact *art, int pick, int power)
Append a given curse with a given power to an artifact.
Definition: obj-curse.c:152
struct object * obj
Definition: object.h:95
basic object structs and enums
Curse type.
Definition: object.h:91
Intialize random names
Definition: init.c:656
Definition: source.h:7
Information about artifacts.
Definition: object.h:239
struct curse * curses
Definition: obj-curse.c:27