OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
DamageCalculator Class Reference

#include <damagecalculator.h>

Classes

struct  Damage
 
struct  Val
 

Public Types

enum  { MinDamage = 5 }
 

Static Public Member Functions

static Val damageValue (Npc &src, Npc &other, const Bullet *b, bool isSpell, const DamageCalculator::Damage &splDmg, const CollideMask bMsk)
 
static Val damageFall (Npc &src, float speed)
 
static auto rangeDamageValue (Npc &src) -> Damage
 
static int32_t damageTypeMask (Npc &npc)
 

Detailed Description

Definition at line 10 of file damagecalculator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MinDamage 

Definition at line 12 of file damagecalculator.h.

Member Function Documentation

◆ damageFall()

DamageCalculator::Val DamageCalculator::damageFall ( Npc src,
float  speed 
)
static

Definition at line 33 of file damagecalculator.cpp.

◆ damageTypeMask()

int32_t DamageCalculator::damageTypeMask ( Npc npc)
static

Definition at line 184 of file damagecalculator.cpp.

◆ damageValue()

DamageCalculator::Val DamageCalculator::damageValue ( Npc src,
Npc other,
const Bullet b,
bool  isSpell,
const DamageCalculator::Damage splDmg,
const CollideMask  bMsk 
)
static

Definition at line 16 of file damagecalculator.cpp.

◆ rangeDamageValue()

DamageCalculator::Damage DamageCalculator::rangeDamageValue ( Npc src) -> Damage
static

Definition at line 211 of file damagecalculator.cpp.


The documentation for this class was generated from the following files: