-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCrackStrategy.h
More file actions
38 lines (27 loc) · 1.04 KB
/
CrackStrategy.h
File metadata and controls
38 lines (27 loc) · 1.04 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
//
// -------------------------------------------------------------------
// Copyright (C) 2007 OpenEngine.dk (See AUTHORS)
//
// This program is free software; It is covered by the GNU General
// Public License version 2 or any later version.
// See the GNU General Public License for more details (see LICENSE).
//--------------------------------------------------------------------
#ifndef _CRACK_STRATEGY_H_
#define _CRACK_STRATEGY_H_
class Solid;
class CrackStrategy {
public:
CrackStrategy() {}
virtual ~CrackStrategy() {}
virtual void InitializeCrack(Solid* solid) {}
// Returns true if crack has been initialized.
virtual bool CrackInitialized(Solid* solid) { return false; }
// Handles the crack tracking strategy
virtual void ApplyCrackTracking(Solid* solid) {}
// Returns true if the solid has been fragmented into
// two or more separate parts.
virtual bool FragmentationDone() { return false; }
// Debug
virtual void RenderDebugInfo(Solid* solid) {}
};
#endif //_CRACK_STRATEGY_H_