-
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.
Merge pull request #3 from robojumper/mAng_flindba
Fix mAng3_c copy assignment, clean up list node templates
- Loading branch information
Showing
11 changed files
with
126 additions
and
90 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#ifndef D_A_T_WOOD_AREA_H | ||
#define D_A_T_WOOD_AREA_H | ||
|
||
#include <d/a/obj/d_a_obj_base.h> | ||
#include <d/d_player.h> | ||
#include <f/f_list_nd.h> | ||
#include <s/s_State.hpp> | ||
#include <s/s_StateMgr.hpp> | ||
|
||
class dAcTWoodArea_c : public dAcObjBase_c { | ||
public: | ||
dAcTWoodArea_c() : mStateMgr(*this, sStateID::null) {} | ||
virtual ~dAcTWoodArea_c() {} | ||
virtual int actorCreate() override; | ||
virtual int actorPostCreate() override; | ||
virtual int actorExecute() override; | ||
virtual int draw() override; | ||
virtual int doDelete() override; | ||
|
||
STATE_FUNC_DECLARE(dAcTWoodArea_c, Init); | ||
STATE_FUNC_DECLARE(dAcTWoodArea_c, Wait); | ||
|
||
void attachCloseObjects(ProfileName profID); | ||
void dropItems(); | ||
bool attachObject(dAcObjBase_c *obj); | ||
|
||
f32 getAttachRadius() { | ||
return scale.x * scaleX; | ||
} | ||
f32 getAttachRadiusSquare() { | ||
return getAttachRadius() * getAttachRadius(); | ||
} | ||
f32 getAttachHeight() { | ||
return scale.y * scaleY; | ||
} | ||
|
||
static const f32 scaleX; | ||
static const f32 scaleY; | ||
|
||
private: | ||
STATE_MGR_DECLARE(dAcTWoodArea_c); | ||
|
||
dAcRef_c<dAcObjBase_c> mRefs[8]; | ||
}; | ||
|
||
#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
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
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