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

📄 billard.h

📁 这是一个相当棒的Linux下的台球游戏
💻 H
字号:
/* billard.h****    includefile for code for positioning the balls**    Copyright (C) 2001  Florian Berger**    Email: harpin_floh@yahoo.de, florian.berger@jk.uni-linz.ac.at****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License Version 2 as**    published by the Free Software Foundation;****    This program is distributed in the hope that it will be useful,**    but WITHOUT ANY WARRANTY; without even the implied warranty of**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the**    GNU General Public License for more details.****    You should have received a copy of the GNU General Public License**    along with this program; if not, write to the Free Software**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.***/#ifndef BILLARD_H#define BILLARD_H#include <stdlib.h>   /* size_t */#include "options.h"#include "billmove.h"#include <math.h>#define TABLE_W  (options_table_size/2.0)#define TABLE_L  (options_table_size)#define TABLE_H  0.84      /* 84 cm */#define BALL_M      0.17   /* 170 g */#define BALL_D   57.15e-3  /* 57.15 mm *///#define BALL_D   70.00e-3  /* 57.15 mm *///#define HOLE1_R   57.15e-3*1.6  /* 57.15 mm *///#define HOLE2_R   57.15e-3*1.3  /* 57.15 mm *///#define HOLE1_R   BALL_D*0.85  /* 57.15 mm *///#define HOLE2_R   BALL_D*0.85  /* 57.15 mm */#define HOLE1_R   (0.110/2.0)  /* d=110 mm */#define HOLE2_R   (0.115/2.0)  /* d=115 mm */#define QUEUE_L    1.4     /* 1.4 m */#define QUEUE_D1   0.035   /* 3.5cm */#define QUEUE_D2   0.010   /* 1.0cm *///#define HOLE1_W  BALL_D*1.7  /* *///#define HOLE2_W  BALL_D*2.0  /* *///#define BANDE_D   0.03  /* 3cm */#define BANDE_D   0.035  /* 3.5cm to be conform with normed opening of middle pockets */#define BANDE_D2RATIO  0.5  /* (1-0.3)*BANDE_D */#define BANDE_D2 (BANDE_D*(1.0-0.3))  /* (1-0.3)*BANDE_D */#define HOLE1_W  (2.0*HOLE1_R-SQR2*BANDE_D*(1.0-HOLE1_TAN))  /* */#define HOLE2_W  (HOLE2_R*2.0+HOLE2_TAN*BANDE_D*2.0)  /* */#define HOLE1_WH  HOLE1_W/2.0  /* */#define HOLE2_WH  HOLE2_W/2.0  /* */#define FRAME_D  (2.0*HOLE2_R+0.05)   /* d_hole+5cm */#define FRAME_H   0.09   /*  9cm */#define FRAME_H2  0.16   /* 16cm */#define FRAME_DH 0.010           /* +7mm */#define FRAME_PHASE 0.01        /* 1cm */#define FRAME_DW    0.017        /* 1.7cm */#define WOOD_D   (FRAME_D-BANDE_D)  /* *///#define HOLE1_TAN  1.6  /* cotan(35

⌨️ 快捷键说明

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