~ubuntu-branches/ubuntu/lucid/blender/lucid

« back to all changes in this revision

Viewing changes to source/gameengine/GameLogic/SCA_NANDController.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-08-06 22:32:19 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090806223219-8z4eej1u8levu4pz
Tags: 2.49a+dfsg-0ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/control: Build-depend on python-2.6 rather than python-2.5.
  - debian/misc/*.desktop: Add Spanish translation to .desktop 
    files.
  - debian/pyversions: 2.6.
  - debian/rules: Clean *.o of source/blender/python/api2_2x/
* New upstream release (LP: #382153).
* Refreshed patches:
  - 01_sanitize_sys.patch
  - 02_tmp_in_HOME
  - 10_use_systemwide_ftgl
  - 70_portability_platform_detection
* Removed patches merged upstream:
  - 30_fix_python_syntax_warning
  - 90_ubuntu_ffmpeg_52_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * SCA_NANDController.h
3
 
 *
4
 
 * $Id: SCA_NANDController.h 15444 2008-07-05 17:05:05Z lukep $
5
 
 *
6
 
 * ***** BEGIN GPL LICENSE BLOCK *****
7
 
 *
8
 
 * This program is free software; you can redistribute it and/or
9
 
 * modify it under the terms of the GNU General Public License
10
 
 * as published by the Free Software Foundation; either version 2
11
 
 * of the License, or (at your option) any later version.
12
 
 *
13
 
 * This program is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU General Public License
19
 
 * along with this program; if not, write to the Free Software Foundation,
20
 
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
 *
22
 
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
23
 
 * All rights reserved.
24
 
 *
25
 
 * The Original Code is: all of this file.
26
 
 *
27
 
 * Contributor(s): none yet.
28
 
 *
29
 
 * ***** END GPL LICENSE BLOCK *****
30
 
 */
31
 
 
32
 
#ifndef __KX_NANDCONTROLLER
33
 
#define __KX_NANDCONTROLLER
34
 
 
35
 
#include "SCA_IController.h"
36
 
 
37
 
class SCA_NANDController : public SCA_IController
38
 
{
39
 
        Py_Header;
40
 
        //virtual void Trigger(class SCA_LogicManager* logicmgr);
41
 
public:
42
 
        SCA_NANDController(SCA_IObject* gameobj,PyTypeObject* T=&Type);
43
 
        virtual ~SCA_NANDController();
44
 
        virtual CValue* GetReplica();
45
 
        virtual void Trigger(SCA_LogicManager* logicmgr);
46
 
 
47
 
        /* --------------------------------------------------------------------- */
48
 
        /* Python interface ---------------------------------------------------- */
49
 
        /* --------------------------------------------------------------------- */
50
 
 
51
 
        virtual PyObject* _getattr(const STR_String& attr);
52
 
 
53
 
};
54
 
 
55
 
#endif //__KX_NANDCONTROLLER
56
 
 
 
1
/**
 
2
 * SCA_NANDController.h
 
3
 *
 
4
 * $Id: SCA_NANDController.h 19826 2009-04-20 23:17:52Z campbellbarton $
 
5
 *
 
6
 * ***** BEGIN GPL LICENSE BLOCK *****
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU General Public License
 
10
 * as published by the Free Software Foundation; either version 2
 
11
 * of the License, or (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program; if not, write to the Free Software Foundation,
 
20
 * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
21
 *
 
22
 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
 
23
 * All rights reserved.
 
24
 *
 
25
 * The Original Code is: all of this file.
 
26
 *
 
27
 * Contributor(s): none yet.
 
28
 *
 
29
 * ***** END GPL LICENSE BLOCK *****
 
30
 */
 
31
 
 
32
#ifndef __KX_NANDCONTROLLER
 
33
#define __KX_NANDCONTROLLER
 
34
 
 
35
#include "SCA_IController.h"
 
36
 
 
37
class SCA_NANDController : public SCA_IController
 
38
{
 
39
        Py_Header;
 
40
        //virtual void Trigger(class SCA_LogicManager* logicmgr);
 
41
public:
 
42
        SCA_NANDController(SCA_IObject* gameobj,PyTypeObject* T=&Type);
 
43
        virtual ~SCA_NANDController();
 
44
        virtual CValue* GetReplica();
 
45
        virtual void Trigger(SCA_LogicManager* logicmgr);
 
46
 
 
47
        /* --------------------------------------------------------------------- */
 
48
        /* Python interface ---------------------------------------------------- */
 
49
        /* --------------------------------------------------------------------- */
 
50
 
 
51
        virtual PyObject* py_getattro(PyObject *attr);
 
52
        virtual PyObject* py_getattro_dict();
 
53
 
 
54
};
 
55
 
 
56
#endif //__KX_NANDCONTROLLER
 
57