☂️ Game engine: Ongoing code migration projects #3271
Labels
easy
Simple task that doesn't require understanding the code much
☂️ umbrella
tracks multiple issues at once
We have multiple code migration projects that we've inherited from DDA, it'd be nice to have them finished or somehow wrapped up:
player
class intoCharacter
andavatar
.player
class has been used as dumping grounds for all NPC and player character code for a long time, resulting in a mess that became hard to use and debug in context of NPC AI. Theplayer
class should be eliminated, all code that uses it should be changed to use one of the 3 classes:npc
,Character
,avatar
(which to use depends on context)."volume": 1
used to mean250 ml
, but it can now be explicitly specified with"volume": "250 ml"
).string_id
s. This in theory could allow for dynamic anatomies (amputations, extra limbs, limb replacements, multiwielding), but may come with a performance hit (hardcode will always be faster than dynamic, and limbs are accessed and used extensively in the code). Original issue: Jsonize Anatomy: replace enum body_part with bodypart_id CleverRaven/Cataclysm-DDA#39068activity_actor
s is they allow custom types and custom type names, which makes it much easier to understand, extend, debug and implement new activities. Original issue: Migrate legacy activities to the activity actor system CleverRaven/Cataclysm-DDA#40013point
andtripoint
APIs to use type safe coord types. We've ported the original implementation ( Provide point types with coordinate system type-safety CleverRaven/Cataclysm-DDA#32017 ) and some of the following changes because it was required for other features, but no further systematic work has been done about it.data/json/
and mods. Tracking issue: [TODO] Finish moving from artifacts to relics #1816Tasks
The text was updated successfully, but these errors were encountered: