summaryrefslogtreecommitdiff
path: root/src/engine/objects/Hedgehog.h
blob: 2057d894d1bcccab27d85493e7cec04f317f74ad (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
46
47
48
49
50
51
52
53
#pragma once

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

#include "engine/World.h"

extern "C" {
#include "macros.h"
#include "main.h"
#include "vehicles.h"
#include "waypoints.h"
#include "common_structs.h"
#include "objects.h"
#include "camera.h"
#include "some_data.h"
}

/**
 * @arg pos FVector xyz spawn position
 * @arg patrolPoint FVector2D xz patrol to location. Actor automatically calculates the Y value
 * @arg unk unknown. Likely actor type.
 */
class OHedgehog : public OObject {
public:
    explicit OHedgehog(const FVector& pos, const FVector2D& patrolPoint, s16 unk);

    ~OHedgehog() {
        _count--;
    }

    static size_t GetCount() {
        return _count;
    }

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

    void func_800555BC(s32 objectIndex, s32 cameraId);
    void func_8004A870(s32 objectIndex, f32 arg1);

    void func_8008311C(s32 objectIndex, s32 arg1);
    void func_80083248(s32 objectIndex);
    void func_800833D0(s32 objectIndex, s32 arg1);
    void func_80083474(s32 objectIndex);


private:
    FVector _pos;
    static size_t _count;
    size_t _idx;
};