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 #include "entity.h"
0008 
0009 
0010 Entity::Entity(Sea::Player player, SeaView* seaview, const BattleShipsConfiguration* battleShipsConfiguration)
0011 : m_player(player)
0012 , m_seaview(seaview)
0013 , m_level(COMPAT_KBS4)
0014 , m_battleShipsConfiguration(battleShipsConfiguration)
0015 , m_restarted(false)
0016 {
0017 }
0018 
0019 Entity::~Entity()
0020 {
0021 }
0022 
0023 void Entity::setNick(const QString& nickname)
0024 {
0025     m_nick = nickname;
0026 }
0027 
0028 void Entity::setCompatibilityLevel(int level)
0029 {
0030     
0031     m_level = static_cast<CompatibilityLevel>(level);
0032 }
0033 
0034 Stats* Entity::stats()
0035 {
0036     return &m_stats;
0037 }
0038 
0039 #include "moc_entity.cpp"