scoring.hrl 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. -record(player_scoring, {
  2. id,
  3. temp,
  4. permanent, % top of Permanent Scoring record linked list
  5. agregated_score %-- aggregated score for all game types is is a list
  6. % [{game_okey, 15},{game_tavla, 12},...]
  7. }).
  8. -record(scoring_record, {
  9. id, % id of that record
  10. next, % next record for traversal
  11. prev,
  12. game_id, % game id for rematching and lost connections
  13. who, % player
  14. all_players, % with other players
  15. game_type, % okey, tavla, batak
  16. game_kind, % chanak, standard, even-odd
  17. condition, % reveal with even tashes, color okey reveal, show gosterge, batak 3 aces, tavla mars.
  18. score_points, % result score points for player
  19. score_kakaush, % result score kakuş for player
  20. custom, % erlang record for a specific game
  21. timestamp % now() of the record
  22. }).
  23. -record(personal_score, { % total count of everything
  24. uid,
  25. games = 0,
  26. wins = 0,
  27. loses = 0,
  28. disconnects = 0,
  29. points = 0,
  30. average_time = 0
  31. }).