-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organization: the deprecation of the player class #34721
Labels
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
Organization
General development organization issues
(P5 - Long-term)
Long-term WIP, may stay on the list for a while.
Comments
KorGgenT
added
Organization
General development organization issues
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
(P5 - Long-term)
Long-term WIP, may stay on the list for a while.
labels
Oct 13, 2019
Merged
This was referenced Oct 23, 2019
Merged
This was referenced Nov 1, 2019
Merged
This was referenced Jan 10, 2020
This was referenced Apr 17, 2020
Merged
Merged
This was referenced Sep 2, 2020
This was referenced Aug 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[C++]
Changes (can be) made in C++. Previously named `Code`
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
Organization
General development organization issues
(P5 - Long-term)
Long-term WIP, may stay on the list for a while.
This is an organizational issue to keep track of the progress of the deprecation of the
player
class in favor of usingCharacter
,npc
, andavatar
. The main purpose to create this issue (as I have been working on this project off and on for months) is to make it more transparent, and for the possibility of others to hop on and do one thing or two. And also to make it apparent that theplayer
class should no longer get members added to it for any reason whatsoever.The general idea is this: things should be moved to
Character
if the member is used for both npc and avatar. It should be moved toavatar
if the member is a player-character-only function (like guis or dealing only withg->u
or some such). Similarly it should be moved tonpc
if it has to do with AI.The following list is in order in where it appears in player.h:
After moving all of these functions, the player class should be made virtual, and then changing the parameters of functions from player shall commence.
Some additional notes, after compiling this list:
These things would go quite well into their own classes:
The text was updated successfully, but these errors were encountered: