//#include "baseentity.h"
//#include "player.h"
//
//bool CWater::collisionDetection( CBaseObject *activeObject, alg::Vector &resultNormal, float &fDistance, float &fStairsMax )
//{
//	CPlayer *pPlayer = reinterpret_cast<CPlayer*>( activeObject );
//	int iCurrWaterLevel = NOT_IN_WATER;
//
//	/*for( BasicLinkedList<alg::PasiveModelBrush>::BasicLink *tmpBrush = m_PolygonBrushes.root; tmpBrush != NULL; tmpBrush = tmpBrush->next )
//	{
//		if( tmpBrush->pointer.m_Bounds.compare( activeObject->m_ActiveBrush.m_MovedBrush.m_Bounds ) )
//		{
//			if( tmpBrush->pointer.isPointInBrush( activeObject->m_ActiveBrush.m_topCenterPoint ) )
//			{
//				iCurrWaterLevel |= HEAD_IN_WATER;
//			}
//			if( tmpBrush->pointer.isPointInBrush( activeObject->m_ActiveBrush.m_middleCenterPoint ) )
//			{
//				iCurrWaterLevel |= BODY_IN_WATER;
//			}
//			if( tmpBrush->pointer.isPointInBrush( activeObject->m_ActiveBrush.m_bottomCenterPoint ) )
//			{
//				iCurrWaterLevel |= LEGS_IN_WATER;
//			}
//		}
//	}*/
//
//
//	
//
//
//	if( iCurrWaterLevel )
//	{
//		pPlayer->m_iWaterLevel = iCurrWaterLevel;
//	
//	}
//	return false;
//}
//
//CWater::CWater()
//{
//	 m_sClassName = "func_water";
//}
//
//void CWater::compile()
//{
//	/*for( BasicLinkedList<alg::PasiveModelBrush>::BasicLink *tmpBrush = m_PolygonBrushes.root; tmpBrush != NULL; tmpBrush = tmpBrush->next )
//		{
//			for( BasicLinkedList<alg::PasiveModelPlane>::BasicLink *tmpPolygon = tmpBrush->pointer.m_polygons.root; tmpPolygon != NULL; tmpPolygon = tmpPolygon->next )
//			{		
//				if( tmpPolygon->pointer.m_vecNormal.scalarMultiply( Vector( 0,0,1 ) ) > 10 )
//				{
//					if( tmpPolygon->pointer.m_pTexture )
//					{
//						textureLibrary.unloadTexture( tmpPolygon->pointer.m_pTexture->texture_id );
//						tmpPolygon->pointer.m_pTexture = NULL;
//					}
//				}
//			
//			}
//		}*/
//}
