Angband
Data Fields
history_entry Struct Reference

Histories are a graph of charts; each chart contains a set of individual entries for that chart, and each entry contains a text description and a successor chart to move history generation to. More...

#include <player.h>

Data Fields

struct history_entrynext
 
struct history_chartsucc
 
int isucc
 
int roll
 
char * text
 

Detailed Description

Histories are a graph of charts; each chart contains a set of individual entries for that chart, and each entry contains a text description and a successor chart to move history generation to.

For example: chart 1 { entry { desc "You are the illegitimate and unacknowledged child"; next 2; }; entry { desc "You are the illegitimate but acknowledged child"; next 2; }; entry { desc "You are one of several children"; next 3; }; };

History generation works by walking the graph from the starting chart for each race, picking a random entry (with weighted probability) each time.

Field Documentation

int isucc
struct history_entry* next
int roll
struct history_chart* succ
char* text

The documentation for this struct was generated from the following file: