card.ddh 703 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # card class
  2. (class Card dd_matrix
  3. (group
  4. # font to render card text
  5. (def ref dd_string3d font)
  6. # id of card - determines its effect
  7. (def int id)
  8. # front and back of the card
  9. (def ref dd_meshTexture mesh)
  10. (def ref dd_meshTexture meshBack)
  11. # it's desired location (where it constantly moves to)
  12. (def dd_matrix target)
  13. # if true, do not render its actual front side (hidden from user)
  14. (def int hidden)
  15. (def ref char cardDescription)
  16. (function void create (group))
  17. (function void clean (group))
  18. (function void draw (group))
  19. (function void applyMatrix (group))
  20. (function void drawRaw (group))
  21. (function void drawText (group))
  22. (function void setId (group int id))
  23. )
  24. ) # card