Project Alice
Loading...
Searching...
No Matches
nations::influence Namespace Reference

Functions

int32_t get_level (sys::state &state, dcon::nation_id gp, dcon::nation_id target)
 
uint8_t increase_level (uint8_t v)
 
uint8_t decrease_level (uint8_t v)
 
uint8_t increase_priority (uint8_t v)
 
uint8_t decrease_priority (uint8_t v)
 
bool is_influence_level_greater (int32_t l, int32_t r)
 
bool is_influence_level_greater_or_equal (int32_t l, int32_t r)
 

Variables

constexpr uint8_t level_mask = uint8_t(0x07)
 
constexpr uint8_t level_neutral = uint8_t(0x00)
 
constexpr uint8_t level_opposed = uint8_t(0x01)
 
constexpr uint8_t level_hostile = uint8_t(0x02)
 
constexpr uint8_t level_cordial = uint8_t(0x03)
 
constexpr uint8_t level_friendly = uint8_t(0x04)
 
constexpr uint8_t level_in_sphere = uint8_t(0x05)
 
constexpr uint8_t priority_mask = uint8_t(0x18)
 
constexpr uint8_t priority_zero = uint8_t(0x00)
 
constexpr uint8_t priority_one = uint8_t(0x08)
 
constexpr uint8_t priority_two = uint8_t(0x10)
 
constexpr uint8_t priority_three = uint8_t(0x18)
 
constexpr uint8_t is_discredited = uint8_t(0x40)
 
constexpr uint8_t is_banned = uint8_t(0x80)
 

Function Documentation

◆ decrease_level()

uint8_t nations::influence::decrease_level ( uint8_t  v)
inline

Definition at line 199 of file nations.hpp.

Here is the caller graph for this function:

◆ decrease_priority()

uint8_t nations::influence::decrease_priority ( uint8_t  v)
inline

Definition at line 224 of file nations.hpp.

◆ get_level()

int32_t nations::influence::get_level ( sys::state state,
dcon::nation_id  gp,
dcon::nation_id  target 
)

Definition at line 23 of file nations.cpp.

Here is the caller graph for this function:

◆ increase_level()

uint8_t nations::influence::increase_level ( uint8_t  v)
inline

Definition at line 181 of file nations.hpp.

Here is the caller graph for this function:

◆ increase_priority()

uint8_t nations::influence::increase_priority ( uint8_t  v)
inline

Definition at line 217 of file nations.hpp.

◆ is_influence_level_greater()

bool nations::influence::is_influence_level_greater ( int32_t  l,
int32_t  r 
)
inline

Definition at line 231 of file nations.hpp.

Here is the caller graph for this function:

◆ is_influence_level_greater_or_equal()

bool nations::influence::is_influence_level_greater_or_equal ( int32_t  l,
int32_t  r 
)
inline

Definition at line 249 of file nations.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ is_banned

constexpr uint8_t nations::influence::is_banned = uint8_t(0x80)
inlineconstexpr

Definition at line 179 of file nations.hpp.

◆ is_discredited

constexpr uint8_t nations::influence::is_discredited = uint8_t(0x40)
inlineconstexpr

Definition at line 178 of file nations.hpp.

◆ level_cordial

constexpr uint8_t nations::influence::level_cordial = uint8_t(0x03)
inlineconstexpr

Definition at line 167 of file nations.hpp.

◆ level_friendly

constexpr uint8_t nations::influence::level_friendly = uint8_t(0x04)
inlineconstexpr

Definition at line 168 of file nations.hpp.

◆ level_hostile

constexpr uint8_t nations::influence::level_hostile = uint8_t(0x02)
inlineconstexpr

Definition at line 166 of file nations.hpp.

◆ level_in_sphere

constexpr uint8_t nations::influence::level_in_sphere = uint8_t(0x05)
inlineconstexpr

Definition at line 169 of file nations.hpp.

◆ level_mask

constexpr uint8_t nations::influence::level_mask = uint8_t(0x07)
inlineconstexpr

Definition at line 163 of file nations.hpp.

◆ level_neutral

constexpr uint8_t nations::influence::level_neutral = uint8_t(0x00)
inlineconstexpr

Definition at line 164 of file nations.hpp.

◆ level_opposed

constexpr uint8_t nations::influence::level_opposed = uint8_t(0x01)
inlineconstexpr

Definition at line 165 of file nations.hpp.

◆ priority_mask

constexpr uint8_t nations::influence::priority_mask = uint8_t(0x18)
inlineconstexpr

Definition at line 171 of file nations.hpp.

◆ priority_one

constexpr uint8_t nations::influence::priority_one = uint8_t(0x08)
inlineconstexpr

Definition at line 173 of file nations.hpp.

◆ priority_three

constexpr uint8_t nations::influence::priority_three = uint8_t(0x18)
inlineconstexpr

Definition at line 175 of file nations.hpp.

◆ priority_two

constexpr uint8_t nations::influence::priority_two = uint8_t(0x10)
inlineconstexpr

Definition at line 174 of file nations.hpp.

◆ priority_zero

constexpr uint8_t nations::influence::priority_zero = uint8_t(0x00)
inlineconstexpr

Definition at line 172 of file nations.hpp.