1 /* $Id: ShakeCut.h,v 1.10 2003/07/16 16:07:40 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 _ShakeCut_ 20 #define _ShakeCut_ 21 #include "Player.h" 22 23 class ShakeCut : public Player { 24 public: 25 ShakeCut(); 26 ShakeCut(long side); 27 ShakeCut( long playerType, long side, double x, double y, double z, 28 double vx, double vy, double vz,long status, long swing, 29 long swingType, bool swingSide, long afterSwing, long swingError, 30 double targetX, double targetY, double eyeX, double eyeY, 31 double eyeZ, long pow, double spin, double stamina, 32 long statusMax ); 33 virtual ~ShakeCut(); 34 35 virtual bool AddStatus( long diff ); 36 37 virtual bool Move( SDL_keysym *KeyHistory, long *MouseXHistory, 38 long *MouseYHistory, unsigned long *MouseBHistory, 39 int Histptr ); 40 41 virtual bool GetModifiedTarget( double &targetX, double &targetY ); 42 43 virtual void CalcLevel( Ball *ball, double &diff, double &level, double &maxVy ); 44 protected: 45 virtual bool Swing( long spin ); 46 virtual bool StartSwing( long spin ); 47 48 virtual bool HitBall(); 49 50 private: 51 bool SwingType( Ball *ball, long spin ); 52 }; 53 54 #endif // _ShakeCut_ 55