-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbehaviorComponent.h
More file actions
39 lines (34 loc) · 1.52 KB
/
behaviorComponent.h
File metadata and controls
39 lines (34 loc) · 1.52 KB
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
//--------------------------------------------------------------------------------
// ビヘイビアコンポネント
// behaviorComponent.h
// Author : Xu Wenjie
// Date : 2017-07-16
//--------------------------------------------------------------------------------
#pragma once
//--------------------------------------------------------------------------------
// インクルードファイル
//--------------------------------------------------------------------------------
#include "component.h"
//--------------------------------------------------------------------------------
// 前方宣言
//--------------------------------------------------------------------------------
class CCollisionInfo;
class CColliderComponent;
//--------------------------------------------------------------------------------
// クラス宣言
//--------------------------------------------------------------------------------
//--------------------------------------------------------------------------------
// 行動コンポネントクラス
//--------------------------------------------------------------------------------
class CBehaviorComponent : public CComponent
{
public:
CBehaviorComponent(CGameObject* const pGameObj) : CComponent(pGameObj) {}
~CBehaviorComponent() {}
virtual bool Init(void) override = 0;
virtual void Uninit(void) override = 0;
virtual void Update(void) = 0;
virtual void LateUpdate(void) = 0;
virtual void OnTrigger(CColliderComponent& colliderThis, CColliderComponent& collider) = 0;
virtual void OnCollision(CCollisionInfo& collisionInfo) = 0;
};