fixed a potential bug, where adding a tree to spawn to the array would
not spawn something else since the parsing was based on a static number
Change the C-style arrays in the player class to C++-arrays

Extend the json classes to read/write std::arrays.
Remove the operator=, copy constructor from Creature

Also removed from the inheriting classes player, npc, monster, Character.
Instead let the compiler create those functions.

Also added a virtual destructor to the Creature class.

This allows the compiler to optimize those functions.
Also when adding a new member, one can not forget to add this to the copy operator, the compiler automatically adds it.

Made the copy constructor/operator of Creature and Character protected. Those classes can not be instantiated anyway, one can not copy a Creature, but only a player or monster object.
Always save player/monster/npc with content

Removes the save_content parameter from the serialize functions.

Move storing and loading of player::worn/player::inv/player::weapon to common load/store function. It must be done for npc and player.

Also let the json classes handle the item-vector that is monster::inv, instead of iterating over it manually when storing it.
Export load/store of Creature members to functions of that class.
Implement hierarchical store and load for Creature and sub classes.

Added comment to document the way it is supposed to work.

Separated serialize and deserialize of player, monster, npc into load and store functions which call the load/store functions of the parent classes.
Check cw
now using size() to get the size of the array
Merge remote-tracking branches 'dda/pr/8964', 'dda/pr/8968' and 'dda/pr/8971' into dda-master

* dda/pr/8964:
  now using size() to get the size of the array
  fixed a potential bug, where adding a tree to spawn to the array would not spawn something else since the parsing was based on a static number

* dda/pr/8968:
  Implement hierarchical store and load for Creature and sub classes.
  Export load/store of Creature members to functions of that class.
  Always save player/monster/npc with content
  Remove the operator=, copy constructor from Creature
  Change the C-style arrays in the player class to C++-arrays

* dda/pr/8971:
  Check cw
Stylin.