yavl / teeworlds-infcroya

InfCroya - InfClass with battle royale elements for Teeworlds 0.7+ (WIP)
https://www.teeworlds.com
Other
4 stars 0 forks source link

croyaGameContext #3

Closed teoman002 closed 5 years ago

teoman002 commented 5 years ago

In the future there has to be much added to gamecontext.cpp, therefore I suggest to create a own class for Infcroya.

yavl commented 5 years ago

I don't think that CGameContext is meant to be replaced/be a base class. We just need to be strict with begin-end comments this time.

teoman002 commented 5 years ago

What are your thoughts on a helper class named CroyaGameContext.cpp that is created when GameContext is constructed and destroyed?

That helper class can receive pointer to:

It gets access to all variables of the base class through inheritance or reference.

Is there a reason why you think, that does not work as intended?