I have a player class and a weapon class. The weapon class has a reload method that checks the inventory property of the player. The player class has a weapon property that would hold the current weapon object, from which the reload method would be called. Since the player can change weapons, I would like to instantiate the player object without a weapon object, but have access to weapon object intellisense in development. Is this possible?
In short, I'd like to be able to see the methods of my weapon class from within my player class, without an instance being created.
Why not use a dummy weapon object that the player holds when they're not holding a weapon? It can be an invisible weapon and lets you access whatever you want in this context.
If it'll mess with the unarmed state, you can make the player use unarmed attack animations if that's needed.
Can you set the property of a Python class equal to an empty class object?