naev 0.10.4
damagetype.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "outfit.h"
7
8/*
9 * stack manipulation
10 */
11int dtype_get( const char* name );
12const char* dtype_damageTypeToStr( int type );
13
14/*
15 * dtype effect loading and freeing
16 */
17int dtype_load (void);
18void dtype_free (void);
19
20/*
21 * misc
22 */
23int dtype_raw( int type, double *shield, double *armour, double *knockback );
24void dtype_calcDamage( double *dshield, double *darmour, double absorb,
25 double *knockback, const Damage *dmg, const ShipStats *s );
int dtype_load(void)
Loads the dtype stack.
Definition: damagetype.c:181
int dtype_raw(int type, double *shield, double *armour, double *knockback)
Gets the raw modulation stats of a damage type.
Definition: damagetype.c:233
void dtype_calcDamage(double *dshield, double *darmour, double absorb, double *knockback, const Damage *dmg, const ShipStats *s)
Gives the real shield damage, armour damage and knockback modifier.
Definition: damagetype.c:257
int dtype_get(const char *name)
Gets the id of a dtype based on name.
Definition: damagetype.c:144
void dtype_free(void)
Frees the dtype stack.
Definition: damagetype.c:215
const char * dtype_damageTypeToStr(int type)
Gets the human readable string from damage type.
Definition: damagetype.c:168
Core damage that an outfit does.
Definition: outfit.h:111
Represents ship statistics, properties ship can use.
Definition: shipstats.h:198