QTfrontend/net/hwmapoptimizer.h
author Wuzzy <almikes@aol.com>
Wed, 11 Oct 2017 23:01:07 +0200
changeset 12692 cb6b70392459
parent 10256 b07288b729c4
permissions -rw-r--r--
Keep rope/jetpack/parachute selected when destroyed and having secondary ammo selected Assumption: You rope with secondary ammo selected. You miss a shot, destroying the rope gear. Previous behaviour: Rope gets deselected and the secondary ammo gets selected, you can no longer rope. Very annoying, reason of many Shoppa fails! New behaviour: Rope stays selected, but selection of secondary ammo is cleared (because rope gear got destroyed). Makes much more sense overall. Analog for jetpack and parachute.

#ifndef HWMAPOPTIMIZER_H
#define HWMAPOPTIMIZER_H

#include "tcpBase.h"
#include "drawmapscene.h"

class HWMapOptimizer : public TCPBase
{
    Q_OBJECT
public:
    explicit HWMapOptimizer(QObject *parent = 0);

    void optimizeMap(const Paths & paths);
    bool couldBeRemoved();
    
signals:    
    void optimizedMap(const Paths & paths);
    
public slots:

protected:
    QStringList getArguments();
    void onClientDisconnect();
    void SendToClientFirst();

private:
    Paths m_paths;
};

#endif // HWMAPOPTIMIZER_H