naev
0.10.4
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
*
stats
;
12
int
def
;
13
}
Difficulty
;
14
15
int
difficulty_load (
void
);
16
void
difficulty_free (
void
);
17
18
const
Difficulty
*difficulty_cur (
void
);
19
const
Difficulty
*difficulty_getAll (
void
);
20
const
Difficulty
*difficulty_get(
const
char
*name );
21
void
difficulty_setGlobal(
const
Difficulty
*
d
);
22
void
difficulty_setLocal(
const
Difficulty
*
d
);
23
24
char
*difficulty_display(
const
Difficulty
*
d
);
25
26
int
difficulty_apply(
ShipStats
*s );
d
static const double d[]
Definition:
rng.c:273
Difficulty
Definition:
difficulty.h:8
Difficulty::stats
ShipStatList * stats
Definition:
difficulty.h:11
Difficulty::def
int def
Definition:
difficulty.h:12
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:167
ShipStats
Represents ship statistics, properties ship can use.
Definition:
shipstats.h:198
Generated by
1.9.3