summaryrefslogtreecommitdiff
path: root/src/engine/objects/TrashBin.h
blob: 3e878e1c01d5245b4e9698caa0d644fd93aa851f (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 <vector>
#include "Object.h"

#include "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"
}

class OTrashBin : public OObject {
public:

    enum Behaviour {
        STATIC, // The lid stays shut
        MUNCHING // The lid opens/closes in a scary munching manner
    };
    explicit OTrashBin(const FVector& pos, const IRotator& rotation, f32 scale, OTrashBin::Behaviour bhv);

    virtual void Tick() override;
    virtual void Draw(s32 cameraId) override;
    void func_8007E00C(s32 objectIndex);
    void init_bb_trash_bin(s32);

private:
    static Gfx BinMod[];
    static Vtx BinVtx[];
    static Vtx BinVtx2[];

    Behaviour _bhv;
    FVector _pos;
    IRotator _rot;
    float _scale;
    size_t _idx;
    bool _drawBin = false;
};