Project Alice
Loading...
Searching...
No Matches
military::ship_in_battle Struct Reference

#include <military.hpp>

Public Attributes

dcon::ship_id ship
 
uint16_t target_slot = 0
 
uint16_t flags = 0
 

Static Public Attributes

static constexpr uint16_t distance_mask = 0x03FF
 
static constexpr uint16_t mode_mask = 0x1C00
 
static constexpr uint16_t mode_seeking = 0x0400
 
static constexpr uint16_t mode_approaching = 0x0800
 
static constexpr uint16_t mode_engaged = 0x0C00
 
static constexpr uint16_t mode_retreating = 0x1000
 
static constexpr uint16_t mode_retreated = 0x1400
 
static constexpr uint16_t mode_sunk = 0x0000
 
static constexpr uint16_t is_attacking = 0x2000
 
static constexpr uint16_t type_mask = 0xC000
 
static constexpr uint16_t type_big = 0x4000
 
static constexpr uint16_t type_small = 0x8000
 
static constexpr uint16_t type_transport = 0x0000
 

Detailed Description

Definition at line 37 of file military.hpp.

Member Data Documentation

◆ distance_mask

constexpr uint16_t military::ship_in_battle::distance_mask = 0x03FF
staticconstexpr

Definition at line 38 of file military.hpp.

◆ flags

uint16_t military::ship_in_battle::flags = 0

Definition at line 57 of file military.hpp.

◆ is_attacking

constexpr uint16_t military::ship_in_battle::is_attacking = 0x2000
staticconstexpr

Definition at line 48 of file military.hpp.

◆ mode_approaching

constexpr uint16_t military::ship_in_battle::mode_approaching = 0x0800
staticconstexpr

Definition at line 42 of file military.hpp.

◆ mode_engaged

constexpr uint16_t military::ship_in_battle::mode_engaged = 0x0C00
staticconstexpr

Definition at line 43 of file military.hpp.

◆ mode_mask

constexpr uint16_t military::ship_in_battle::mode_mask = 0x1C00
staticconstexpr

Definition at line 40 of file military.hpp.

◆ mode_retreated

constexpr uint16_t military::ship_in_battle::mode_retreated = 0x1400
staticconstexpr

Definition at line 45 of file military.hpp.

◆ mode_retreating

constexpr uint16_t military::ship_in_battle::mode_retreating = 0x1000
staticconstexpr

Definition at line 44 of file military.hpp.

◆ mode_seeking

constexpr uint16_t military::ship_in_battle::mode_seeking = 0x0400
staticconstexpr

Definition at line 41 of file military.hpp.

◆ mode_sunk

constexpr uint16_t military::ship_in_battle::mode_sunk = 0x0000
staticconstexpr

Definition at line 46 of file military.hpp.

◆ ship

dcon::ship_id military::ship_in_battle::ship

Definition at line 55 of file military.hpp.

◆ target_slot

uint16_t military::ship_in_battle::target_slot = 0

Definition at line 56 of file military.hpp.

◆ type_big

constexpr uint16_t military::ship_in_battle::type_big = 0x4000
staticconstexpr

Definition at line 51 of file military.hpp.

◆ type_mask

constexpr uint16_t military::ship_in_battle::type_mask = 0xC000
staticconstexpr

Definition at line 50 of file military.hpp.

◆ type_small

constexpr uint16_t military::ship_in_battle::type_small = 0x8000
staticconstexpr

Definition at line 52 of file military.hpp.

◆ type_transport

constexpr uint16_t military::ship_in_battle::type_transport = 0x0000
staticconstexpr

Definition at line 53 of file military.hpp.


The documentation for this struct was generated from the following file: