From c8a270e51dc22f39ed048ab1cc609e6e456df58f Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 7 Jun 2015 17:49:09 +0200 Subject: Split types.h into separate header for each type --- src/rule_type.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/rule_type.hpp (limited to 'src/rule_type.hpp') diff --git a/src/rule_type.hpp b/src/rule_type.hpp new file mode 100644 index 00000000..a8b35ffa --- /dev/null +++ b/src/rule_type.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "h-basic.h" + +/* Define monster generation rules */ +struct rule_type +{ + byte mode; /* Mode of combination of the monster flags */ + byte percent; /* Percent of monsters affected by the rule */ + + u32b mflags1; /* The monster flags that are allowed */ + u32b mflags2; + u32b mflags3; + u32b mflags4; + u32b mflags5; + u32b mflags6; + u32b mflags7; + u32b mflags8; + u32b mflags9; + + char r_char[5]; /* Monster race allowed */ +}; -- cgit v1.2.3