summaryrefslogtreecommitdiff
path: root/src/engine/sky/SkyActor.h
blob: 77fbbff89095e904f9ad5c6b53e9244a46667f0e (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
#pragma once

#include <libultraship.h>
#include "engine/SpawnParams.h"
#include "engine/CoreMath.h"

extern "C" {
#include "common_structs.h"
#include "code_800029B0.h"
}

/**
 * SkyActor base class
 *
 *
 */
class SkyActor {
public:
    SkyActor(ScreenContext* screen) {
        mScreen = screen;
    };
    SkyActor(ScreenContext* screen, u16 cloudVariant, u16 posY, u16 rotY, u16 scalePercent) {};
    virtual ~SkyActor() {};

    virtual void Draw(ScreenContext* ctx, s32 arg0) {};
    virtual void Tick() {};
    ScreenContext* mScreen;
protected:
    f32 mScale;
    u16 mCloudVariant;
    u8* mTexture;
    s32 mTextureWidth;
    s32 mTextureHeight;
    bool mVisible;
    Vtx* mVtx;
    int32_t mX;
    int32_t mY;
    int32_t mRotY;
    int32_t mOldX;
    int32_t mOldY;

    s16 mUnk208;
    s16 mUnk210;
    f32 mUnk1E8;
    s16 mUnk218;
};