Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T the_dungeon_project
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • genie_logiciel_2015
  • the_dungeon_project
  • Issues
  • #19

Closed
Open
Created Nov 25, 2015 by Thomas Dupriez@dupriezDeveloper

Entity-Being-Bearer-Character

  • Since the gameState only contains entities, how can all the other classes of the "Entity's hierarchy" (Being-Bearer-Character) be used ?

  • Entity need a Species object to be instanciated. Species contains fields like baseHP and the like. I thought pure Entities (ie. not Being, Bearer, Character) weren't, by design, supposed to have such statistics. Am I correct ?

  • I'm beginning to think that the Entity's hierarchy should be collapsed. Removing Being, Bearer and Character and putting everything in the Entity class. Of course, I don't mean that Entity should get all the fields and methods from Being-Bearer-Character (the file would become messy), but instead, in the spirit of Species, I think we should create objects containing all the fields and methods linked to a given "feature" of Entities. Example: Instead of the Bearer class, we create an "Inventory" class containing the fields and methods from Bearer, and we add an field in Entity storing an object of type "Inventory". What do you think of this ?

Assignee
Assign to
Time tracking