www.pudn.com > DEM.zip > DemAction.h, change:2007-01-22,size:1307b


// DemAction.h: interface for the CDemAction class. 
// 
////////////////////////////////////////////////////////////////////// 
#include "Vector.h" 
 
#if !defined(AFX_DEMACTION_H__B408B9F8_8D73_4342_BF89_7555D154CBCE__INCLUDED_) 
#define AFX_DEMACTION_H__B408B9F8_8D73_4342_BF89_7555D154CBCE__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CDemAction   
{ 
public: 
	CDemAction(); 
	virtual ~CDemAction(); 
 
public: 
	void PositionCamera(float positionX, float positionY, float positionZ, 
				  		     float viewX,     float viewY,     float viewZ, 
							 float upVectorX, float upVectorY, float upVectorZ); 
	void RotateView(float angle, float X, float Y, float Z); 
	 
	void CalculateHorizonVec(); 
 
	void CalculateVerticalVec(); 
 
	void Update(int w,int h,float speed); 
	void StrafeCamera(float speed); 
	void CheckForMovement(float speed); 
	void MoveCamera(float speed); 
 
public: 
	void Look(); 
	HWND hwnd; 
 
	CVector m_vPosition;					 
 
	CVector m_vView;						 
 
	CVector	m_vUpVector;		 
 
	CVector m_vStrafe;	 
	 
	CVector VerticalVector; 
 
	CVector ViewDerection; 
 
	//BOOL m_Role; 
	BOOL Role_Flag; 
	int m_range; 
	float m_fzAngle; 
	float m_fxAngle; 
}; 
 
#endif // !defined(AFX_DEMACTION_H__B408B9F8_8D73_4342_BF89_7555D154CBCE__INCLUDED_)