player.ddh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. (include "card.ddh")
  2. # player class
  3. (class Player dd_matrix
  4. (group
  5. # user works a bit different than AI
  6. (def int isUser)
  7. # actual location (different than the displayed)
  8. (def dd_matrix actual)
  9. # player itself
  10. (def dd_meshTexture mesh)
  11. # cards
  12. (def int cardsTotal)
  13. (def ref Card cards[10])
  14. (def int userLookingAtCard)
  15. # font
  16. (def dd_string3d font)
  17. (def int highlightCard)
  18. (def int selectedCard)
  19. (def dd_matrix selectedMatrix)
  20. (def ref Card selectedCard2)
  21. # functions
  22. (function void create (group))
  23. (function void draw (group))
  24. (function void drawUser (group))
  25. (function void drawLookingAtText (group))
  26. (function void drawAI (group))
  27. (function void clean (group))
  28. (function void addCard (group Card card))
  29. (function void removeCard (group int index))
  30. (function void calculateCardPositions (group))
  31. (function void calculateCardPositionsUser (group))
  32. (function void highlightLookingCard (group))
  33. (function void planCard (group int index))
  34. (function void selectCard (group))
  35. (function void deselectCard (group))
  36. (function void lookAtCard (group float rotX float rotY))
  37. )
  38. ) # player