summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/jobs.h
blob: 4b02ac149b92a374787596bdf1d3804e73710242 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef JOBS_H
#define JOBS_H

int ng_num_classes();
job_type get_class(const int index);
int get_class_index_by_abbrev(const char *abbrev);
const char *get_class_abbrev(int which_job);
job_type get_class_by_abbrev(const char *abbrev);
int get_class_index_by_name(const char *name);
const char *get_class_name(int which_job);
job_type get_class_by_name(const char *name);

// job_type bounds checking.
bool is_valid_job(job_type job);

#endif