1 /* $Id: HitMark.h,v 1.3 2001/03/30 03:16:51 nan Exp $ */ 2 3 // Copyright (C) 2000 $B?@Fn(B $B5H9((B(Kanna Yoshihiro) 4 // 5 // This program is free software; you can redistribute it and/or modify 6 // it under the terms of the GNU General Public License as published by 7 // the Free Software Foundation; either version 2 of the License, or 8 // (at your option) any later version. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 19 #ifndef _HitMark_ 20 #define _HitMark_ 21 #include "View.h" 22 23 class HitMark : public View { 24 public: 25 HitMark(); 26 static bool Init(); 27 bool Hit( double x, double y, double z, double vx, double vy, double vz, 28 long swingError ); 29 virtual ~HitMark(); 30 31 virtual bool Redraw(); 32 virtual bool RedrawAlpha(); 33 34 static GLuint m_textures[2]; 35 private: 36 double m_x; 37 double m_y; 38 double m_z; 39 double m_vx; 40 double m_vy; 41 double m_vz; 42 long m_swingError; 43 44 struct timeb startTime; 45 long m_time; 46 }; 47 48 #endif // _HitMark 49