Files
blender/source/gameengine/Expressions
Porteries Tristan 7730391d74 BGE: subclass with more than 1 argument, D1237
In the BGE you can't create a subclass with more than 1 argument like : "player = Player(owner, 10)"
I have modified the py_base_new to check only the first argument of args tuple.
Now we can do :

    class Player(types.KX_GameObject):
        def __init__(self, gameobj, life):
            print("create new player :", self, ", life :", life)

    player = Player(own, 50)
2015-04-15 22:02:16 +10:00
..
2013-04-18 01:52:38 +00:00
2013-03-26 07:29:01 +00:00
2013-03-26 07:29:01 +00:00
2014-08-27 18:59:32 +10:00