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

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 DELEGATE_H
0008 #define DELEGATE_H
0009 
0010 class Delegate
0011 {
0012 public:
0013     virtual ~Delegate() { }
0014     virtual void action(Sea::Player player, const Coord& c) = 0;
0015     virtual void changeDirection(Sea::Player player) = 0;
0016     virtual bool canAddShip(Sea::Player player, const Coord& c) = 0;
0017     virtual Ship * nextShip() = 0;
0018 };
0019 
0020 #endif // DELEGATE_H