Created
April 22, 2011 18:16
-
-
Save onedayitwillmake/937291 to your computer and use it in GitHub Desktop.
RealtimeMultiplayerGame stubb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| File: | |
| AbstractServerGame.js | |
| Created By: | |
| Mario Gonzalez | |
| Project: | |
| RealtimeMultiplayerNodeJS | |
| Abstract: | |
| This class is the base Game controller in RealtimeMultiplayerGame on the server side. | |
| It provides things such as dropping players, and contains a ServerNetChannel | |
| Basic Usage: | |
| [This class is not instantiated! - below is an example of using this class by extending it] | |
| (function(){ | |
| MyGameClass = function() { | |
| return this; | |
| } | |
| RealtimeMultiplayerGame.extend(MyGameClass, RealtimeMultiplayerGame.AbstractServerGame, null); | |
| }; | |
| Version: | |
| 1.0 | |
| */ | |
| (function(){ | |
| RealtimeMultiplayerGame.AbstractServerGame = function() { | |
| RealtimeMultiplayerGame.AbstractServerGame.superclass.constructor.call(this); | |
| return this; | |
| }; | |
| RealtimeMultiplayerGame.AbstractServerGame.prototype = { | |
| } | |
| RealtimeMultiplayerGame.extend(RealtimeMultiplayerGame.AbstractServerGame, RealtimeMultiplayerGame.AbstractGame, null); | |
| })() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment