1 /* $Id: comShakeCut.h,v 1.7 2003/07/16 15:53:12 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 _comShakeCut_ 20 #define _comShakeCut_ 21 #include "ShakeCut.h" 22 #include "comPlayer.h" 23 24 class ComShakeCut : public ShakeCut, public ComPlayer { 25 public: 26 ComShakeCut(); 27 ComShakeCut(long side); 28 ComShakeCut( long playerType, long side, double x, double y, double z, 29 double vx, double vy, double vz,long status, long swing, 30 long swingType, bool swingSide, long afterSwing, 31 long swingError, 32 double targetX, double targetY, double eyeX, double eyeY, 33 double eyeZ, long pow, double spin, double stamina, 34 long statusMax ); 35 36 virtual ~ComShakeCut(); 37 38 virtual bool Move( SDL_keysym *KeyHistory, long *MouseXHistory, 39 long *MouseYHistory, unsigned long *MouseBHistory, 40 int Histptr ); 41 42 protected: 43 virtual bool Think(); 44 45 virtual bool Hitarea( double &hitX, double &hitY); 46 virtual bool SetTargetX( Player* opponent ); 47 }; 48 49 #endif // _comShakeCut_ 50 51