Sprite.js 920 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. function Sprite() {
  2. }
  3. Sprite.prototype.getName = function() {
  4. Polycode.Sprite_getName(this.__ptr)
  5. }
  6. Sprite.prototype.setName = function(name) {
  7. Polycode.Sprite_setName(this.__ptr, name)
  8. }
  9. Sprite.prototype.addSpriteState = function(state) {
  10. Polycode.Sprite_addSpriteState(this.__ptr, state)
  11. }
  12. Sprite.prototype.removeSpriteState = function(state) {
  13. Polycode.Sprite_removeSpriteState(this.__ptr, state)
  14. }
  15. Sprite.prototype.getNumStates = function() {
  16. Polycode.Sprite_getNumStates(this.__ptr)
  17. }
  18. Sprite.prototype.getState = function(index) {
  19. Polycode.Sprite_getState(this.__ptr, index)
  20. }
  21. Sprite.prototype.getStateByName = function(name) {
  22. Polycode.Sprite_getStateByName(this.__ptr, name)
  23. }
  24. Sprite.prototype.setParentSpritSet = function(spriteSet) {
  25. Polycode.Sprite_setParentSpritSet(this.__ptr, spriteSet)
  26. }
  27. Sprite.prototype.getParentSpriteSet = function() {
  28. Polycode.Sprite_getParentSpriteSet(this.__ptr)
  29. }