00001 00002 00003 00004 00005 00006 00007 00008 00009 #include <string.h> 00010 #include "FCSDerivedStates.h" 00011 #include "FCHelpingAlgorithms.h" 00012 00013 FCSDerivedStatesList::FCSDerivedStatesList() 00014 { 00015 m_NumberOfStates = 0; 00016 m_MaxNumberOfStates = 0; 00017 m_States = NULL; 00018 } 00019 00020 void FCSDerivedStatesList::AddState(FCSStateWithLocations* State) 00021 { 00022 if (m_NumberOfStates == m_MaxNumberOfStates) 00023 { 00024 m_MaxNumberOfStates += 16; 00025 ReallocStateWithLocationsArray(&m_States, m_NumberOfStates, m_MaxNumberOfStates); 00026 } 00027 00028 m_States[m_NumberOfStates] = State; 00029 m_NumberOfStates++; 00030 }