1 /* $Id: TrainingPenAttack.h,v 1.5 2003/07/16 15:55:24 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 _TrainingPenAttack_
20 #define _TrainingPenAttack_
21 #include "PenAttack.h"
22 
23 class TrainingPenAttack : public PenAttack {
24 public:
25   TrainingPenAttack();
26   TrainingPenAttack(long side);
27   TrainingPenAttack( 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,
30 		     long swingError,
31 		     double targetX, double targetY, double eyeX, double eyeY,
32 		     double eyeZ, long pow, double spin, double stamina,
33 		     long statusMax );
34   virtual ~TrainingPenAttack();
35 
36   virtual bool AddStatus( long diff );
37 
38   virtual bool Move( SDL_keysym *KeyHistory, long *MouseXHistory,
39 		     long *MouseYHistory, unsigned long *MouseBHistory,
40 		     int Histptr );
41 
42   virtual bool HitBall();
43 };
44 
45 #endif // _PenAttack__
46