File indexing completed on 2024-04-21 04:03:18

0001 /*
0002     SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef SHOT_H
0008 #define SHOT_H
0009 
0010 #include "sea.h"
0011 
0012 class Controller;
0013 
0014 class Shot
0015 {
0016     Controller* m_parent;
0017     Sea::Player m_player;
0018     Coord m_pos;
0019 public:
0020     Shot(Controller* parent, Sea::Player player, const Coord& pos);
0021     void execute(const HitInfo& info);
0022     
0023     Sea::Player player() const { return m_player; }
0024     const Coord& pos() const { return m_pos; }
0025 };
0026 
0027 
0028 #endif // SHOT_H