PageRenderTime 35ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/js/core/AbstractGameView.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 30 lines | 16 code | 1 blank | 13 comment | 0 complexity | 6e1492ca603b02bd3e05397cc16ba869 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. /**
  2. File:
  3. AbstractGameView.js
  4. Created By:
  5. Mario Gonzalez
  6. Project:
  7. RealtimeMultiplayerNodeJS
  8. Abstract:
  9. This class contains an interface for a GameView within RealtimeMultiplayerNodeJS
  10. Basic Usage:
  11. [This class only contains an interface]
  12. Your specific game's implementation of a GameView should implement at least these methods.
  13. */
  14. (function () {
  15. RealtimeMultiplayerGame.AbstractGameView = function () {
  16. };
  17. RealtimeMultiplayerGame.AbstractGameView.prototype = {
  18. setup: function () {
  19. },
  20. update: function (gameClockReal) {
  21. },
  22. addEntity: function (anEntityView) {
  23. },
  24. removeEntity: function (anEntityView) {
  25. },
  26. dealloc: function () {
  27. }
  28. };
  29. })();