one thing that i like a lot of python is these thing :
you call a obj , and this have different tools to manage the obj …
as example :
L = 
now L is a list , so , there varius tools as : L:append() , L.pop() etc
these things here done by class i guess. (right?)
so i want have the same thing to manage my game since it seem a lot cool.
the problem is i not sure how is doable ,and even when worth make it and when not worth.(maybe there cases where not worth ?)
this is correct ? or you see something of wrong ?
(note that not work in BGE , just in the consolle )
class Player: def __init__(self) : self.life = 1.0 self.curWeapon = ["magnum", 10] class Weapon: def __init__(self, owner): self.owner = owner def fire(self): own = self.owner wp = own.curWeapon if wp > 0: wp -= 1 print("boom") else: print("click") print("ammo=", wp) self.weapon = Weapon(self) ob = Player() ob.weapon.fire() ob.weapon.fire() ob.weapon.fire()