Skip to content

Instantly share code, notes, and snippets.

@onedayitwillmake
Created April 22, 2011 18:16
Show Gist options
  • Select an option

  • Save onedayitwillmake/937291 to your computer and use it in GitHub Desktop.

Select an option

Save onedayitwillmake/937291 to your computer and use it in GitHub Desktop.
RealtimeMultiplayerGame stubb
/**
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