Designing tables for storing various requirements and stats for multiplayer game

后端 未结 13 1354
感情败类
感情败类 2021-01-30 00:41

Original Question:

Hello,

I am creating very simple hobby project - browser based multiplayer game. I am stuck at designing tables for storing information abou

13条回答
  •  爱一瞬间的悲伤
    2021-01-30 00:51

    When you have a data-centric problem, the database is your friend. What you have done so far seems to be quite right.

    On the other hand, the other problems you mention seem to be behaviour-centric. In this case, an object-oriented analisys and solution will work better.

    For example: Create a quest class with specificQuest child classes. Each child should implement a bool HasRequirements(Player player) method.

提交回复
热议问题