ScummVM API documentation
attack_effect.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  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef ULTIMA_ULTIMA1_WIDGETS_HIT_H
23 #define ULTIMA_ULTIMA1_WIDGETS_HIT_H
24 
25 #include "ultima/shared/maps/map_widget.h"
26 
27 namespace Ultima {
28 namespace Ultima1 {
29 namespace Widgets {
30 
35 protected:
36  uint _tileId;
37  Point _delta;
38  uint _remainingDistance;
39  uint _agility;
40  uint _damage;
41 protected:
45  AttackEffect(Shared::Game *game, Shared::Maps::MapBase *map, uint tileId) : Shared::Maps::MapWidget(game, map),
46  _tileId(tileId), _remainingDistance(0), _agility(0), _damage(0) {}
47 public:
51  AttackEffect(Shared::Game *game, Shared::Maps::MapBase *map) : Shared::Maps::MapWidget(game, map),
52  _tileId(0), _remainingDistance(0), _agility(0), _damage(0) {}
53 
57  void synchronize(Common::Serializer &s) override;
58 
62  uint getTileNum() const override { return _tileId; }
63 
67 };
68 
73 public:
78  AttackEffect(game, map, 50) {}
79 };
80 
85 public:
90  AttackEffect(game, map, 51) {}
91 };
92 
93 
94 } // End of namespace Widgets
95 } // End of namespace Ultima1
96 } // End of namespace Ultima
97 
98 #endif
void synchronize(Common::Serializer &s) override
Definition: game.h:42
Definition: serializer.h:79
Definition: detection.h:27
MapWidget(Game *game, MapBase *map)
Definition: map_widget.h:70
AttackEffect(Shared::Game *game, Shared::Maps::MapBase *map)
Definition: attack_effect.h:51
SpellAttackEffect(Shared::Game *game, Shared::Maps::MapBase *map)
Definition: attack_effect.h:89
Definition: rect.h:45
Definition: map_widget.h:50
Definition: map_base.h:47
PhysicalAttackEffect(Shared::Game *game, Shared::Maps::MapBase *map)
Definition: attack_effect.h:77
AttackEffect(Shared::Game *game, Shared::Maps::MapBase *map, uint tileId)
Definition: attack_effect.h:45
Definition: attack_effect.h:84
uint getTileNum() const override
Definition: attack_effect.h:62
Definition: attack_effect.h:34