diff options
author | Aki <please@ignore.pl> | 2024-03-26 01:45:33 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-03-26 01:49:16 +0100 |
commit | ea4c0557d0b7c2317e03d3d3aaefd6063c99f091 (patch) | |
tree | dad4634faf3c17f3642d736f62350df88c117a59 /StarsEx/FighterTacticalAI.h | |
parent | 38332f77dc1e7bb03776631101eff6e8ad8bcaef (diff) | |
download | starshatter-ea4c0557d0b7c2317e03d3d3aaefd6063c99f091.zip starshatter-ea4c0557d0b7c2317e03d3d3aaefd6063c99f091.tar.gz starshatter-ea4c0557d0b7c2317e03d3d3aaefd6063c99f091.tar.bz2 |
DWORD replaced with std::uint32_t in non-Win32-related parts
With the exception of some netcode. This brings some important questions
and solidifies me in pursuing better abstract over definitions. It might
also be a good idea to have distinct aliases or compound types for time
and (net) identifiers.
Diffstat (limited to 'StarsEx/FighterTacticalAI.h')
-rw-r--r-- | StarsEx/FighterTacticalAI.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/StarsEx/FighterTacticalAI.h b/StarsEx/FighterTacticalAI.h index bda69ec..fd39a05 100644 --- a/StarsEx/FighterTacticalAI.h +++ b/StarsEx/FighterTacticalAI.h @@ -11,12 +11,13 @@ Fighter-specific mid-level (tactical) AI */ -#ifndef FighterTacticalAI_h -#define FighterTacticalAI_h +#pragma once + +#include <cstdint> + +#include <List.h> -#include "Types.h" #include "TacticalAI.h" -#include "List.h" // +--------------------------------------------------------------------+ @@ -44,12 +45,7 @@ protected: virtual int ListSecondariesForTarget(Ship* tgt, List<WeaponGroup>& weps); bool winchester[4]; - DWORD THREAT_REACTION_TIME; - DWORD secondary_selection_time; + std::uint32_t THREAT_REACTION_TIME; + std::uint32_t secondary_selection_time; int ai_level; }; - -// +--------------------------------------------------------------------+ - -#endif // FighterTacticalAI_h - |