mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 06:48:20 +00:00
Remove "typedef struct" or "typedef enum" from a few places
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#define MAX_SWARM_PETS 12 //this can change as long as you make more coords (swarm_pet_x/swarm_pet_y)
|
||||
#define WAKE_THE_DEAD_NPCTYPEID 500 //We use first pet in pets table as a template
|
||||
|
||||
typedef enum {
|
||||
enum aaNonspellAction {
|
||||
aaActionNone = 0,
|
||||
aaActionAETaunt = 1,
|
||||
aaActionMassBuff = 2,
|
||||
@@ -38,7 +38,7 @@ typedef enum {
|
||||
aaActionLeechTouch = 14,
|
||||
aaActionProjectIllusion = 15,
|
||||
aaActionFadingMemories = 16
|
||||
} aaNonspellAction;
|
||||
};
|
||||
|
||||
enum { //leadership AA indexes
|
||||
groupAAMarkNPC = 0,
|
||||
@@ -116,7 +116,7 @@ static const uint8 LeadershipAACosts[_maxLeaderAA][MAX_LEADERSHIP_TIERS] = {
|
||||
{ 0, 0, 0, 0, 0, 0 }, //raidAA15
|
||||
};
|
||||
|
||||
typedef enum { //AA IDs
|
||||
enum aaID { //AA IDs
|
||||
aaNone =0,
|
||||
aaInnateStrength =2,//implemented as bonus
|
||||
aaInnateStamina =7,//implemented as bonus
|
||||
@@ -1525,7 +1525,7 @@ typedef enum { //AA IDs
|
||||
|
||||
aaHighestID //this should always be last, and should always
|
||||
//follow the highest AA ID
|
||||
} aaID;
|
||||
};
|
||||
|
||||
//Structure representing the database's swarm pet configs
|
||||
struct SwarmPet_Struct {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
class CheatManager;
|
||||
class Client;
|
||||
|
||||
typedef enum {
|
||||
enum UpdateMovementType {
|
||||
Collision = 1,
|
||||
TeleportB,
|
||||
TeleportA,
|
||||
@@ -37,18 +37,18 @@ typedef enum {
|
||||
SpellA, // Titanium - UF
|
||||
Unknown0x8,
|
||||
SpellB // Used in RoF+
|
||||
} UpdateMovementType;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
enum ExemptionType {
|
||||
ShadowStep,
|
||||
KnockBack,
|
||||
Port,
|
||||
Assist,
|
||||
Sense,
|
||||
MAX_EXEMPTIONS
|
||||
} ExemptionType;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
enum CheatTypes {
|
||||
MQWarp,
|
||||
MQWarpShadowStep,
|
||||
MQWarpKnockBack,
|
||||
@@ -59,7 +59,7 @@ typedef enum {
|
||||
MQGhost,
|
||||
MQFastMem,
|
||||
MQWarpAbsolute
|
||||
} CheatTypes;
|
||||
};
|
||||
|
||||
class CheatManager {
|
||||
public:
|
||||
|
||||
+6
-7
@@ -106,7 +106,7 @@ enum { //scribing argument to MemorizeSpell
|
||||
};
|
||||
|
||||
//Modes for the zoning state of the client.
|
||||
typedef enum {
|
||||
enum ZoneMode {
|
||||
ZoneToSafeCoords, // Always send ZonePlayerToBind_Struct to client: Succor/Evac
|
||||
GMSummon, // Always send ZonePlayerToBind_Struct to client: Only a GM Summon
|
||||
GMHiddenSummon, // Always send ZonePlayerToBind_Struct to client silently: Only a GM Summon
|
||||
@@ -117,7 +117,7 @@ typedef enum {
|
||||
SummonPC, // In-zone GMMove() always: Call of the Hero spell or some other type of in zone only summons
|
||||
Rewind, // Summon to /rewind location.
|
||||
EvacToSafeCoords
|
||||
} ZoneMode;
|
||||
};
|
||||
|
||||
// translate above enum to a string
|
||||
std::string GetZoneModeString(ZoneMode mode);
|
||||
@@ -130,13 +130,13 @@ enum {
|
||||
HideCorpseNPC = 5
|
||||
};
|
||||
|
||||
typedef enum
|
||||
enum ShowSpellType
|
||||
{
|
||||
Disciplines,
|
||||
Spells
|
||||
} ShowSpellType;
|
||||
};
|
||||
|
||||
typedef enum
|
||||
enum XTargetType
|
||||
{
|
||||
Empty = 0,
|
||||
Auto = 1,
|
||||
@@ -165,8 +165,7 @@ typedef enum
|
||||
MyPetTarget = 24,
|
||||
MyMercenary = 25,
|
||||
MyMercenaryTarget = 26
|
||||
|
||||
} XTargetType;
|
||||
};
|
||||
|
||||
struct XTarget_Struct
|
||||
{
|
||||
|
||||
+2
-2
@@ -28,11 +28,11 @@ class Seperator;
|
||||
|
||||
typedef void (*CmdFuncPtr)(Client *, const Seperator *);
|
||||
|
||||
typedef struct {
|
||||
struct CommandRecord {
|
||||
uint8 admin;
|
||||
std::string description;
|
||||
CmdFuncPtr function; // null means perl function
|
||||
} CommandRecord;
|
||||
};
|
||||
|
||||
extern int (*command_dispatch)(Client *, std::string, bool);
|
||||
extern int command_count; // Commands Loaded Count
|
||||
|
||||
+2
-2
@@ -922,7 +922,7 @@ struct DataBucketCache
|
||||
|
||||
enum eStandingPetOrder { SPO_Follow, SPO_Sit, SPO_Guard, SPO_FeignDeath };
|
||||
|
||||
typedef enum {
|
||||
enum PetTypeOld {
|
||||
petFamiliar, //only listens to /pet get lost
|
||||
petAnimation, //does not listen to any commands
|
||||
petOther,
|
||||
@@ -930,4 +930,4 @@ typedef enum {
|
||||
petNPCFollow,
|
||||
petTargetLock, //remain active as long something is on the hatelist. Don't listen to any commands
|
||||
petNone = 0xFF // not a pet
|
||||
} PetTypeOld;
|
||||
};
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
typedef enum {
|
||||
enum QuestEventID {
|
||||
EVENT_SAY = 0,
|
||||
EVENT_TRADE, //being given an item or money
|
||||
EVENT_DEATH, //being killed
|
||||
@@ -169,6 +169,6 @@ typedef enum {
|
||||
EVENT_SPELL_EFFECT_BOT,
|
||||
EVENT_SPELL_EFFECT_BUFF_TIC_BOT,
|
||||
_LargestEventID
|
||||
} QuestEventID;
|
||||
};
|
||||
|
||||
extern const char *QuestEventSubroutines[_LargestEventID];
|
||||
|
||||
+2
-2
@@ -32,7 +32,7 @@
|
||||
#include <deque>
|
||||
#include <list>
|
||||
|
||||
typedef struct {
|
||||
struct NPCProximity {
|
||||
float min_x;
|
||||
float max_x;
|
||||
float min_y;
|
||||
@@ -41,7 +41,7 @@ typedef struct {
|
||||
float max_z;
|
||||
bool say;
|
||||
bool proximity_set;
|
||||
} NPCProximity;
|
||||
};
|
||||
|
||||
struct AISpells_Struct {
|
||||
uint32 type; // 0 = never, must be one (and only one) of the defined values
|
||||
|
||||
+3
-2
@@ -21,13 +21,14 @@
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
typedef struct ZBSP_Node {
|
||||
|
||||
struct ZBSP_Node {
|
||||
int32 node_number;
|
||||
float normal[3], splitdistance;
|
||||
int32 region;
|
||||
int32 special;
|
||||
int32 left, right;
|
||||
} ZBSP_Node;
|
||||
};
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user