1- <?php
2- namespace ide \behaviour \spec ;
3-
4- use behaviour \custom \BlinkAnimationBehaviour ;
5- use behaviour \custom \ChatterAnimationBehaviour ;
6- use behaviour \custom \DraggingBehaviour ;
7- use behaviour \custom \DraggingFormBehaviour ;
8- use behaviour \custom \GameEntityBehaviour ;
9- use behaviour \custom \GameSceneBehaviour ;
10- use ide \behaviour \AbstractBehaviourSpec ;
11- use ide \formats \form \AbstractFormElement ;
12- use ide \formats \form \elements \FormFormElement ;
13- use ide \formats \form \elements \GamePaneFormElement ;
14- use ide \formats \form \elements \PanelFormElement ;
15- use ide \formats \form \elements \ScrollPaneFormElement ;
16- use ide \formats \form \elements \SpriteViewFormElement ;
17- use ide \scripts \AbstractScriptComponent ;
18- use php \gui \UXNode ;
19-
20- class GameEntityBehaviourSpec extends AbstractBehaviourSpec
21- {
22- /**
23- * @return string
24- */
25- public function getName ()
26- {
27- return 'Объект игровой сцены ' ;
28- }
29-
30- public function getGroup ()
31- {
32- return self ::GROUP_GAME ;
33- }
34-
35- public function getIcon ()
36- {
37- return "icons/gameMonitor16.png " ;
38- }
39-
40- /**
41- * @return string
42- */
43- public function getDescription ()
44- {
45- return 'Объект для игровой сцены со свойства физики и не только ' ;
46- }
47-
48- /**
49- * @return string
50- */
51- public function getType ()
52- {
53- return GameEntityBehaviour::class;
54- }
55-
56- /**
57- * @param $target
58- * @return bool
59- */
60- public function isAllowedFor ($ target )
61- {
62- return !($ target instanceof AbstractScriptComponent)
63- && !($ target instanceof FormFormElement);
64- }
1+ <?php
2+ namespace ide \behaviour \spec ;
3+
4+ use behaviour \custom \BlinkAnimationBehaviour ;
5+ use behaviour \custom \ChatterAnimationBehaviour ;
6+ use behaviour \custom \DraggingBehaviour ;
7+ use behaviour \custom \DraggingFormBehaviour ;
8+ use behaviour \custom \GameEntityBehaviour ;
9+ use behaviour \custom \GameSceneBehaviour ;
10+ use ide \behaviour \AbstractBehaviourSpec ;
11+ use ide \formats \form \AbstractFormElement ;
12+ use ide \formats \form \elements \FormFormElement ;
13+ use ide \formats \form \elements \GamePaneFormElement ;
14+ use ide \formats \form \elements \PanelFormElement ;
15+ use ide \formats \form \elements \ScrollPaneFormElement ;
16+ use ide \formats \form \elements \SpriteViewFormElement ;
17+ use ide \scripts \AbstractScriptComponent ;
18+ use php \gui \UXNode ;
19+
20+ class GameEntityBehaviourSpec extends AbstractBehaviourSpec
21+ {
22+ /**
23+ * @return string
24+ */
25+ public function getName ()
26+ {
27+ return 'Объект игровой сцены ' ;
28+ }
29+
30+ public function getGroup ()
31+ {
32+ return self ::GROUP_GAME ;
33+ }
34+
35+ public function getIcon ()
36+ {
37+ return "icons/gameMonitor16.png " ;
38+ }
39+
40+ /**
41+ * @return string
42+ */
43+ public function getDescription ()
44+ {
45+ return 'Объект для игровой сцены со свойствами физики и не только ' ;
46+ }
47+
48+ /**
49+ * @return string
50+ */
51+ public function getType ()
52+ {
53+ return GameEntityBehaviour::class;
54+ }
55+
56+ /**
57+ * @param $target
58+ * @return bool
59+ */
60+ public function isAllowedFor ($ target )
61+ {
62+ return !($ target instanceof AbstractScriptComponent)
63+ && !($ target instanceof FormFormElement);
64+ }
6565}
0 commit comments