summaryrefslogtreecommitdiff
path: root/src/engine/objects/Seagull.h
blob: 70b969fe4001b8594b12c8e5b27c43cccbf65022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once

#include <libultraship.h>
#include "Object.h"

#include "engine/registry/RegisterContent.h"
#include "engine/World.h"

//! @todo unk_0D5 needs to be a struct variable probably. What does it do? Behaviour?
class OSeagull : public OObject {
public:
    explicit OSeagull(const SpawnParams& params);

    ~OSeagull() {
        _count--;
    }

    static size_t GetCount() {
        return _count;
    }

    // This is simply a helper function to keep Spawning code clean
    static OSeagull* Spawn(const FVector& pos) {
        SpawnParams params = {
            .Name = "mk:seagull",
            .Location = pos,
        };
        return dynamic_cast<OSeagull*>(AddObjectToWorld<OSeagull>(params));
    }

    virtual void Tick() override;
    virtual void Draw(s32 cameraId) override;

    void func_800552BC(s32 cameraId, s32 objectIndex);

    void func_8008275C(s32 objectIndex);
    void func_8008241C(s32 objectIndex, s32 arg1);
    void func_80082714(s32 objectIndex, s32 arg1);
private:
    static size_t _count;
    s32 _idx;
    bool _toggle;

    SplineData *spline;
};