C
Carl Forsman
In the following, is that ture
$package a fucntion??
$class a function??
the variable $class = a function will take some parameters ??
$extends : Gamelib.mobile
<variable $extends is an object of GameLib.mobile ??>
the ) sign means
<is an object of ??>
months : $static (null);
<variable months is an object of $static(null) ??>
$static (null)
< this is a function with name $static ??>
<I had see people define function like this>
function launchNormal (params) {
// some code
}
<we can also define javascript function like this too??>
launchNormal : function(params) {
// some code
},
showGameScreen : $static(function( returnScreen ) {
// some code
}),
<showGameScreen is an object of the function $static, where the
function $static will take an anonymous function as parameter??>
====================================
$package("");
$class("Gamespot", {
$extends : GameLib.mobile,
months : $static( null ),
notifiedCounter : $static(0),
IMAGE_SIZE : $static( null ),
$constructor : function() {
this.$base();
// some code
},
launchNormal : function(params) {
// some code
},
showGameScreen : $static(function( returnScreen ) {
// some code
}),
noConnection : $static(function ( returnScreen ) {
// some code
}),
initialize : $static(function() {
// some code
}),
});
$package("");
$package a fucntion??
$class a function??
the variable $class = a function will take some parameters ??
$extends : Gamelib.mobile
<variable $extends is an object of GameLib.mobile ??>
the ) sign means
<is an object of ??>
months : $static (null);
<variable months is an object of $static(null) ??>
$static (null)
< this is a function with name $static ??>
<I had see people define function like this>
function launchNormal (params) {
// some code
}
<we can also define javascript function like this too??>
launchNormal : function(params) {
// some code
},
showGameScreen : $static(function( returnScreen ) {
// some code
}),
<showGameScreen is an object of the function $static, where the
function $static will take an anonymous function as parameter??>
====================================
$package("");
$class("Gamespot", {
$extends : GameLib.mobile,
months : $static( null ),
notifiedCounter : $static(0),
IMAGE_SIZE : $static( null ),
$constructor : function() {
this.$base();
// some code
},
launchNormal : function(params) {
// some code
},
showGameScreen : $static(function( returnScreen ) {
// some code
}),
noConnection : $static(function ( returnScreen ) {
// some code
}),
initialize : $static(function() {
// some code
}),
});
$package("");