naev
0.12.6
src
difficulty.h
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
#pragma once
5
6
#include "shipstats.h"
7
8
typedef
struct
Difficulty_ {
9
char
*
name
;
10
char
*
description
;
11
ShipStatList
12
*
stats
;
13
int
def
;
14
}
Difficulty
;
15
16
int
difficulty_load(
void
);
17
void
difficulty_free(
void
);
18
19
const
Difficulty
*difficulty_cur(
void
);
20
const
Difficulty
*difficulty_getAll(
void
);
21
const
Difficulty
*difficulty_get(
const
char
*name );
22
void
difficulty_setGlobal(
const
Difficulty
*
d
);
23
void
difficulty_setLocal(
const
Difficulty
*
d
);
24
25
char
*difficulty_display(
const
Difficulty
*
d
);
26
27
int
difficulty_apply(
ShipStats
*s );
d
static const double d[]
Definition
rng.c:263
Difficulty
Definition
difficulty.h:8
Difficulty::stats
ShipStatList * stats
Definition
difficulty.h:12
Difficulty::def
int def
Definition
difficulty.h:13
Difficulty::description
char * description
Definition
difficulty.h:10
Difficulty::name
char * name
Definition
difficulty.h:9
ShipStatList
Represents relative ship statistics as a linked list.
Definition
shipstats.h:198
ShipStats
Represents ship statistics, properties ship can use.
Definition
shipstats.h:229
Generated by
1.14.0