SpaghettiKart
Loading...
Searching...
No Matches
Bat.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <libultraship.h>
4
#include <vector>
5
#include "
Object.h
"
6
7
#include "
engine/registry/RegisterContent.h
"
8
#include "
World.h
"
9
#include "
CoreMath.h
"
10
11
extern
"C"
{
12
#include "
macros.h
"
13
#include "
main.h
"
14
#include "
vehicles.h
"
15
#include "
waypoints.h
"
16
#include "
common_structs.h
"
17
#include "
objects.h
"
18
#include "
camera.h
"
19
#include "some_data.h"
20
}
21
30
class
OBat
:
public
OObject
{
31
public
:
32
33
// This is simply a helper function to keep Spawning code clean
34
static
inline
OBat
*
Spawn
(
const
FVector
& pos,
const
IRotator
& rot) {
35
SpawnParams
params = {
36
.Name =
"mk:bat"
,
37
.Location = pos,
38
.Rotation = rot,
39
};
40
return
dynamic_cast<
OBat
*
>
(
AddObjectToWorld<OBat>
(params));
41
}
42
43
explicit
OBat
(
const
SpawnParams
& params);
44
45
~OBat
() {
46
_count
--;
47
}
48
49
static
size_t
GetCount
() {
50
return
_count
;
51
}
52
53
virtual
void
Tick
()
override
;
54
virtual
void
Draw
(s32 cameraId)
override
;
55
void
func_80046F60
(u8* tlut, u8* arg1, s32 arg2, s32 arg3, s32 arg4);
56
57
void
func_8007D8AC
(s32 arg0);
58
s32
func_8007D804
(s32 objectIndex);
59
void
func_8007D8D4
(s32 objectIndex, s32 arg1);
60
void
func_8007DA74
(s32 objectIndex);
61
void
func_8007DAF8
(s32 objectIndex, s32 arg1);
62
void
func_80089A04
(s32 objectIndex, f32 arg1, f32 arg2);
63
void
func_8007D794
(s32 objectIndex);
64
void
func_8007DA4C
(s32 objectIndex);
65
66
private
:
67
FVector
_pos
;
68
static
size_t
_count
;
69
size_t
_idx
;
70
};
CoreMath.h
Object.h
RegisterContent.h
AddObjectToWorld
static OObject * AddObjectToWorld(const SpawnParams ¶ms)
Definition
RegisterContent.h:10
World.h
camera.h
OBat::func_8007D8AC
void func_8007D8AC(s32 arg0)
Definition
Bat.cpp:173
OBat::func_8007DA4C
void func_8007DA4C(s32 objectIndex)
Definition
Bat.cpp:236
OBat::Spawn
static OBat * Spawn(const FVector &pos, const IRotator &rot)
Definition
Bat.h:34
OBat::_idx
size_t _idx
Definition
Bat.h:69
OBat::~OBat
~OBat()
Definition
Bat.h:45
OBat::func_8007D794
void func_8007D794(s32 objectIndex)
Definition
Bat.cpp:270
OBat::_pos
FVector _pos
Definition
Bat.h:67
OBat::_count
static size_t _count
Definition
Bat.h:68
OBat::func_8007D804
s32 func_8007D804(s32 objectIndex)
Definition
Bat.cpp:178
OBat::func_80046F60
void func_80046F60(u8 *tlut, u8 *arg1, s32 arg2, s32 arg3, s32 arg4)
Definition
Bat.cpp:167
OBat::GetCount
static size_t GetCount()
Definition
Bat.h:49
OBat::func_8007D8D4
void func_8007D8D4(s32 objectIndex, s32 arg1)
Definition
Bat.cpp:191
OBat::func_80089A04
void func_80089A04(s32 objectIndex, f32 arg1, f32 arg2)
Definition
Bat.cpp:252
OBat::func_8007DAF8
void func_8007DAF8(s32 objectIndex, s32 arg1)
Definition
Bat.cpp:241
OBat::func_8007DA74
void func_8007DA74(s32 objectIndex)
Definition
Bat.cpp:223
OBat::Tick
virtual void Tick() override
Definition
Bat.cpp:41
OBat::Draw
virtual void Draw(s32 cameraId) override
Definition
Bat.cpp:110
OBat::OBat
OBat(const SpawnParams ¶ms)
Definition
Bat.cpp:23
OObject::OObject
OObject()
Definition
Object.cpp:13
common_structs.h
macros.h
main.h
objects.h
FVector
Definition
CoreMath.h:30
IRotator
Definition
CoreMath.h:141
SpawnParams
Definition
SpawnParams.h:30
vehicles.h
waypoints.h
src
engine
objects
Bat.h
Generated by
1.13.2