~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/gameengine/Ketsji/KX_SceneActuator.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
//
3
 
// Add object to the game world on action of this actuator
4
 
//
5
 
// $Id: KX_SceneActuator.h 26841 2010-02-12 13:34:04Z campbellbarton $
6
1
//
7
2
// ***** BEGIN GPL LICENSE BLOCK *****
8
3
//
30
25
// ***** END GPL LICENSE BLOCK *****
31
26
//
32
27
 
33
 
#ifndef __KX_SCENEACTUATOR
34
 
#define __KX_SCENEACTUATOR
 
28
/** \file KX_SceneActuator.h
 
29
 *  \ingroup ketsji
 
30
 */
 
31
 
 
32
#ifndef __KX_SCENEACTUATOR_H__
 
33
#define __KX_SCENEACTUATOR_H__
35
34
 
36
35
#include "SCA_IActuator.h"
37
36
#include "SCA_IScene.h" /* Replace_IScene only */
39
38
 
40
39
class KX_SceneActuator : public SCA_IActuator
41
40
{
42
 
        Py_Header;
 
41
        Py_Header
43
42
        
44
43
        int                                                     m_mode;
45
44
        // (restart) has become a toggle internally... not in the interface though
55
54
        class KX_Camera*                        m_camera;
56
55
 
57
56
        /** Is this a valid scene? */
58
 
        class KX_Scene* FindScene(char* sceneName);
 
57
        class KX_Scene* FindScene(const char* sceneName);
59
58
        /** Is this a valid camera? */
60
 
        class KX_Camera* FindCamera(char* cameraName);
 
59
        class KX_Camera* FindCamera(const char* cameraName);
61
60
        
62
61
 public:
63
62
        enum SCA_SceneActuatorMode
85
84
        virtual CValue* GetReplica();
86
85
        virtual void ProcessReplica();
87
86
        virtual bool UnlinkObject(SCA_IObject* clientobj);
88
 
        virtual void Relink(GEN_Map<GEN_HashedPtr, void*> *obj_map);
 
87
        virtual void Relink(CTR_Map<CTR_HashedPtr, void*> *obj_map);
89
88
 
90
89
        virtual bool Update();
91
90
        
92
 
#ifndef DISABLE_PYTHON
 
91
#ifdef WITH_PYTHON
93
92
 
94
93
        virtual void Replace_IScene(SCA_IScene *val)
95
94
        {
103
102
        static PyObject* pyattr_get_camera(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef);
104
103
        static int pyattr_set_camera(void *self, const struct KX_PYATTRIBUTE_DEF *attrdef, PyObject *value);
105
104
 
106
 
#endif // DISABLE_PYTHON
 
105
#endif // WITH_PYTHON
107
106
 
108
107
}; /* end of class KXSceneActuator */
109
108