ScummVM API documentation
gravitoncannon.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * Additional copyright for this file:
8  * Copyright (C) 1995-1997 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef PEGASUS_NEIGHBORHOOD_MARS_GRAVITONCANNON_H
26 #define PEGASUS_NEIGHBORHOOD_MARS_GRAVITONCANNON_H
27 
28 #include "pegasus/surface.h"
29 #include "pegasus/neighborhood/mars/shuttleweapon.h"
30 
31 namespace Pegasus {
32 
33 class GravitonCannon : public ShuttleWeapon {
34 public:
36  ~GravitonCannon() override {}
37 
38  void initShuttleWeapon() override;
39  void cleanUpShuttleWeapon() override;
40 
41  void draw(const Common::Rect &) override;
42 
43 protected:
44  void updateWeaponPosition() override;
45  bool collisionWithJunk(Common::Point &impactPoint) override;
46  void hitJunk(Common::Point impactPoint) override;
47  void hitShuttle(Common::Point impactPoint) override;
48 
49  Surface _gravitonImage;
50  Common::Rect _gravitonBounds;
51  Point3D _rightOrigin, _rightLocation;
52 };
53 
54 } // End of namespace Pegasus
55 
56 #endif
Definition: spacechase3d.h:50
Definition: rect.h:144
Definition: gravitoncannon.h:33
Definition: rect.h:45
Definition: shuttleweapon.h:39
Definition: surface.h:50
Definition: ai_action.h:33