SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
CameraMan.cpp
1#include "Game/Camera/CameraDirector.hpp"
2#include "Game/Camera/CameraMan.hpp"
3#include "Game/Camera/CameraPoseParam.hpp"
4
5CameraMan::CameraMan(const char *pName) : NameObj(pName) {
6 mDirector = nullptr;
7 mPoseParam = new CameraPoseParam();
8 mIsActivated = false;
9 _15 = false;
10 mMatrix.identity();
11}
12
13void CameraMan::init(const JMapInfoIter &rIter) {
14
15}
16
17void CameraMan::movement() {
18 if (mIsActivated) {
19 calc();
20 _15 = false;
21 }
22}
23
24void CameraMan::calc() {
25
26}
27
28void CameraMan::notifyActivate() {
29
30}
31
32void CameraMan::notifyDeactivate() {
33
34}
35
36void CameraMan::owned(CameraDirector *pDirector) {
37 mDirector = pDirector;
38}
39
40void CameraMan::released(CameraDirector *pDirector) {
41 mDirector = nullptr;
42}
43
44void CameraMan::activate(CameraDirector *pDirector) {
45 mIsActivated = true;
46 notifyActivate();
47}
48
49void CameraMan::deactivate(CameraDirector *pDirector) {
50 mIsActivated = false;
51 notifyDeactivate();
52}
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
Definition CameraMan.cpp:13
The most basic form of an object.
Definition NameObj.hpp:11