Water.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:2k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. /******************************************************************************************************************
  2.                                                                                                                    
  3. 葛碘疙:
  4. 累己磊:
  5. 累己老:
  6. [老磊][荐沥磊] : 荐沥 郴侩
  7.                                                                                                                    
  8. *******************************************************************************************************************/
  9. #ifndef _CWATER_H
  10. #define _CWATER_H
  11. class CWater
  12. {
  13. public:
  14. CWater();
  15. ~CWater();
  16. protected:
  17. D3DLVERTEX m_avLight[(WATER_NUM_CNTY_LIGHTTILE+1)][(WATER_NUM_CNTX_LIGHTTILE+1)];
  18. D3DLVERTEX m_avSaveLight[(WATER_NUM_CNTY_LIGHTTILE+1)][(WATER_NUM_CNTX_LIGHTTILE+1)];
  19. WORD m_pwLightIndices[WATER_NUM_LIGHTTILE_INDICES];
  20. DWORD m_dwLightColor;
  21. public:
  22. BOOL m_bShowFog;
  23. CHAR m_szWater[26][MAX_PATH];
  24. BYTE m_bCurrTexIdx;
  25. public:
  26. VOID Init(DWORD dwLightColor);
  27. VOID ShowLightFog(BOOL bShowFog = TRUE);
  28. // 货肺 官诧 祸阑 m_avSaveLight俊 历厘矫挪促.
  29. VOID ChangeLightColor(DWORD dwColor);
  30. VOID ClearSavedLightColor();
  31. BOOL GetScreenPosToLightTile(INT nX, INT nY, INT* nTileX, INT* nTileY);
  32. BOOL SetLightRadiusWithRing(INT XLightPos, INT YLightPos, INT nSmallRadius, 
  33.    INT nSmallRed, INT nSmallGreen, INT nSmallBlue, 
  34.    INT nLargeRadius,
  35.    INT nLargeRed, INT nLargeGreen, INT nLargeBlue);
  36. BOOL SetLightRadiusWithCircle(INT XLightPos, INT YLightPos, INT nRadius,
  37.  INT nRedValue, INT nGreenValue, INT nBlueValue, 
  38.  FLOAT rDrakRate = 1.0f);
  39. BOOL SetLightRadiusWithElipse(INT XLightPos, INT YLightPos, INT nXRadius, INT nYRadius, 
  40.                              INT nRedValue, INT nGreenValue, INT nBlueValue, 
  41.  FLOAT rDrakRate = 1.0f);
  42. };
  43. #endif // _CWATER_H