⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctenpin.h

📁 一个3D的保龄球的源代码
💻 H
字号:
/*
* ============================================================================
*  Name     : CTenpin.h: 
*  Part of  : Game
*  Created  : 2004-09-27 by Wei XIA
*  Implementation notes:
*   interface for the CTenpin class.
*  Version  :
*  Copyright: Gameloft S.A.
*
* ============================================================================
*/
#if !defined AFX_TENPIN_H
#define AFX_TENPIN_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "def.h"
#include "Object.h"

/** distance between two pins nearby */
#define  TENPIN_DISTANCE					32 
/** pin radius */
#define  TENPIN_RADIUS						7 


class CTenpin :public CObject
{
public:
	
	CTenpin(int id);
	CTenpin();
	~CTenpin();
	void movingTenpin(Vector4s step);
	void init();
	
public:	
	void SetOnLane();
	void Render(CRender3D *pR3d, bool isDrawModel);
	void GrabbingTenpin(bool isSweep, bool isFirstStep, bool isSetting);
	void SetRenderingProperty();
	void Restart();
 
  /** tenpin current velocity on X & Y coordinate */
int m_tenpinVelocity[3]; //X,Y
  /**the rolling area*/
 int m_rollingArea;

  /** tenpin angle
   * [0]: between the pin and Z coordinate (pinAngleZ)
   * [1]: the falling velocity of the collided ball (pinAngleV)
   * [2]: between the shadow of the pin on XY plane and y coordinate (pinAngleXYvY)
   */
int m_tenpinAngle[3];

  /** pin bottom's distance against the earth */
 int m_tenpinJumpHeight;

  /**the flag whether the collided pin will roll, the value is -1, 0, 1*/
int m_tenpinRotation;

//end

//int m_tenpinPosition[3]; // X,Y,Z axis //Milo 10-26
int m_id;

Byte m_tenpinState;
	
};


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -