File: trap_type.hpp

package info (click to toggle)
tome 2.4~0.git.2015.12.29-1.1
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 13,712 kB
  • ctags: 10,771
  • sloc: cpp: 134,109; ansic: 7,229; sh: 283; makefile: 70
file content (24 lines) | stat: -rw-r--r-- 945 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "h-basic.h"

/**
 * Trap descriptor.
 */
struct trap_type
{
	s16b probability;      /* probability of existence */
	s16b another;          /* does this trap easily combine */
	s16b p1valinc;         /* how much does this trap attribute to p1val */
	byte difficulty;       /* how difficult to disarm */
	byte minlevel;         /* what is the minimum level on which the traps should be */
	byte color;            /* what is the color on screen */
	u32b flags;            /* where can these traps go - and perhaps other flags */
	bool_ ident;           /* do we know the name */
	s16b known;            /* how well is this trap known */
	const char *name;      /* normal name like weakness */
	s16b dd, ds;           /* base damage */
	char *text;            /* longer description once you've met this trap */
	byte g_attr;           /* Overlay graphic attribute */
	char g_char;           /* Overlay graphic character */
};