trinState.js 591 B

12345678910111213141516171819202122232425
  1. function TrinState() {
  2. this.group = new TrinLayer();
  3. }
  4. TrinState.prototype.group = null;
  5. TrinState.prototype.create = function() {
  6. };
  7. TrinState.prototype.update = function() {
  8. this.group.update();
  9. };
  10. TrinState.prototype.draw = function(context) {
  11. this.group.draw(context);
  12. };
  13. TrinState.prototype.destroy = function() {
  14. this.group.destroy();
  15. };
  16. TrinState.prototype.add = function(entity) {
  17. this.group.add(entity);
  18. };
  19. TrinState.prototype.remove = function(entity) {
  20. this.group.remove(entity);
  21. };
  22. TrinState.prototype.resized = function() {};