-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
#ifndef D_T_TIME_DOOR_BEAM_H | ||
#define D_T_TIME_DOOR_BEAM_H | ||
|
||
#include "d/a/d_a_base.h" | ||
#include "d/t/d_tg.h" | ||
#include "m/m_mtx.h" | ||
|
||
class dTgTimeDoorBeam_c : public dAcBase_c { | ||
class dTgTimeDoorBeam_c : public dTg_c { | ||
public: | ||
dTgTimeDoorBeam_c() {} | ||
virtual ~dTgTimeDoorBeam_c() {} | ||
|
||
virtual int create() override; | ||
virtual int doDelete() override; | ||
virtual int actorExecute() override; | ||
virtual int draw() override; | ||
|
||
private: | ||
bool checkPlayerPosInMtx(); | ||
mMtx_c matrix; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
#include "d/t/d_t_time_door_beam.h" | ||
#include "d/a/d_a_player.h" | ||
#include "toBeSorted/area_math.h" | ||
|
||
SPECIAL_ACTOR_PROFILE(TAG_TIME_DOOR_BEAM, dTgTimeDoorBeam_c, fProfile::TAG_TIME_DOOR_BEAM, 0x252, 0, 0); | ||
|
||
int dTgTimeDoorBeam_c::create() { | ||
matrixCreateFromPosRotYScale(matrix, position, rotation.y, mScale, nullptr, 0.0f); | ||
return SUCCEEDED; | ||
} | ||
|
||
int dTgTimeDoorBeam_c::doDelete() { | ||
return SUCCEEDED; | ||
} | ||
|
||
int dTgTimeDoorBeam_c::actorExecute() { | ||
return SUCCEEDED; | ||
} | ||
|
||
int dTgTimeDoorBeam_c::draw() { | ||
return SUCCEEDED; | ||
} | ||
|
||
bool dTgTimeDoorBeam_c::checkPlayerPosInMtx() { | ||
if (dAcPy_c::LINK == nullptr) { | ||
return false; | ||
} | ||
|
||
return checkIfVec3fInMatrix(matrix, dAcPy_c::LINK->position); | ||
} |