/*
    Open1560 - An Open Source Re-Implementation of Midtown Madness 1 Beta
    Copyright (C) 2020 Brick

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "arts7/node.h"

union eqEvent;
class mmTextNode;

class mmCompBase : public asNode
{
public:
    // ??1mmCompBase@@UAE@XZ | inline
    ARTS_EXPORT ~mmCompBase() override = default;

    // ?DisableBlt@mmCompBase@@UAEXXZ | inline
    ARTS_IMPORT virtual void DisableBlt();

    // ?SetBltXY@mmCompBase@@UAEXMM@Z | inline
    ARTS_IMPORT virtual void SetBltXY(f32 arg1, f32 arg2);

    // ?Action@mmCompBase@@UAEXTeqEvent@@@Z | inline
    ARTS_EXPORT virtual void Action(eqEvent arg1);

    // ?Action@mmCompBase@@UAEXTeqEvent@@MMH@Z | inline
    ARTS_EXPORT virtual void Action(eqEvent arg1, f32 arg2, f32 arg3, i32 arg4);

    // ?CaptureAction@mmCompBase@@UAEXTeqEvent@@@Z | inline
    ARTS_EXPORT virtual void CaptureAction(eqEvent arg1);

    // ?Switch@mmCompBase@@UAEXH@Z | inline
    ARTS_IMPORT virtual void Switch(i32 arg1);

    // ?EvalMouseXY@mmCompBase@@UAEXMM@Z | inline
    ARTS_EXPORT virtual void EvalMouseXY(f32 arg1, f32 arg2);

    // ?Highlight@mmCompBase@@UAEXPAVmmTextNode@@H@Z | inline
    ARTS_EXPORT virtual void Highlight(mmTextNode* arg1, i32 arg2);

    // ?SetGeometry@mmCompBase@@UAEXMMMM@Z | inline
    ARTS_IMPORT virtual void SetGeometry(f32 arg1, f32 arg2, f32 arg3, f32 arg4);

    virtual void SetPosition(mmTextNode* arg1, i32 arg2, f32 arg3) = 0;

    // ?Reset@mmCompBase@@UAEXXZ
    ARTS_EXPORT void Reset() override;

    // ?Update@mmCompBase@@UAEXXZ
    ARTS_IMPORT void Update() override;

    u8 gap20[0x28];
};

check_size(mmCompBase, 0x48);
