File indexing completed on 2024-12-08 03:46:51
0001 /* 0002 SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "shot.h" 0008 #include "controller.h" 0009 0010 Shot::Shot(Controller* parent, Sea::Player player, const Coord& pos) 0011 : m_parent(parent) 0012 , m_player(player) 0013 , m_pos(pos) 0014 { 0015 } 0016 0017 void Shot::execute(const HitInfo& info) { 0018 m_parent->finalizeShot(m_player, m_pos, info); 0019 } 0020 0021 0022