TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TStruct40 Class Reference

#include <CascMndx.h>

Public Member Functions

 TStruct40 ()
 
void InitSearchBuffers ()
 

Public Attributes

TGenericArray array_00
 
TGenericArray PathStops
 
DWORD ItemIndex
 
DWORD CharIndex
 
DWORD ItemCount
 
DWORD SearchPhase
 

Constructor & Destructor Documentation

TStruct40::TStruct40 ( )
903 {
904  ItemIndex = 0;
905  CharIndex = 0;
906  ItemCount = 0;
908 }
DWORD CharIndex
Definition: CascMndx.h:183
DWORD ItemCount
Definition: CascMndx.h:184
DWORD ItemIndex
Definition: CascMndx.h:182
#define CASC_SEARCH_INITIALIZING
Definition: CascMndx.h:21
DWORD SearchPhase
Definition: CascMndx.h:185

Member Function Documentation

void TStruct40::InitSearchBuffers ( )
912 {
913  DWORD NewMaxItemCount;
914 
915  array_00.ItemCount = 0;
916 
917  // HOTS: 19586BD
918  if(array_00.MaxItemCount < 0x40)
919  {
920  // HOTS: 19586C2
921  NewMaxItemCount = 0x40;
922 
923  if(array_00.MaxItemCount > 0x20)
924  {
925  if(array_00.MaxItemCount <= 0x7FFFFFFF)
926  NewMaxItemCount = array_00.MaxItemCount + array_00.MaxItemCount;
927  else
928  NewMaxItemCount = CASC_MAX_ENTRIES(BYTE);
929  }
930 
931  array_00.SetMaxItems_CHARS(NewMaxItemCount);
932  }
933 
934  // HOTS: 19586E1
935  // Set the new item count
937 
938  if(PathStops.MaxItemCount < 4)
939  {
940  // HOTS: 19586F2
941  NewMaxItemCount = 4;
942 
943  // HOTS: 19586EA
944  if(PathStops.MaxItemCount > 2)
945  {
946  if(PathStops.MaxItemCount <= 0x6666666)
947  NewMaxItemCount = PathStops.MaxItemCount + PathStops.MaxItemCount;
948  else
949  NewMaxItemCount = CASC_MAX_ENTRIES(PATH_STOP);
950  }
951 
952  // HOTS: 195870B
953  PathStops.SetMaxItems_PATH_STOP(NewMaxItemCount);
954  }
955 
956  ItemIndex = 0;
957  CharIndex = 0;
958  ItemCount = 0;
960 }
void sub_19583A0(DWORD NewItemCount)
Definition: CascRootFile_Mndx.cpp:615
DWORD CharIndex
Definition: CascMndx.h:183
DWORD ItemCount
Definition: CascMndx.h:184
#define CASC_MAX_ENTRIES(type)
Definition: CascMndx.h:19
DWORD ItemIndex
Definition: CascMndx.h:182
#define CASC_SEARCH_SEARCHING
Definition: CascMndx.h:22
void SetMaxItems_CHARS(DWORD NewMaxItemCount)
Definition: CascRootFile_Mndx.cpp:515
void SetMaxItems_PATH_STOP(DWORD NewMaxItemCount)
Definition: CascRootFile_Mndx.cpp:539
DWORD ItemCount
Definition: CascMndx.h:129
TGenericArray array_00
Definition: CascMndx.h:180
unsigned int DWORD
Definition: CascPort.h:139
Definition: CascMndx.h:40
unsigned char BYTE
Definition: CascPort.h:136
DWORD MaxItemCount
Definition: CascMndx.h:130
DWORD SearchPhase
Definition: CascMndx.h:185
TGenericArray PathStops
Definition: CascMndx.h:181

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

TGenericArray TStruct40::array_00
DWORD TStruct40::CharIndex
DWORD TStruct40::ItemCount
DWORD TStruct40::ItemIndex
TGenericArray TStruct40::PathStops
DWORD TStruct40::SearchPhase

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