home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 148
/
MOBICLIC148.ISO
/
mac
/
DATA
/
DSS148
/
DSS148_01
/
DSS148_01.swf
/
scripts
/
dss148_01
/
ModuleConfig.as
< prev
next >
Wrap
Text File
|
2012-10-16
|
2KB
|
62 lines
package dss148_01
{
public class ModuleConfig
{
public var poissonsVitesse:Array;
public var poissonsMalus:Array;
public var crevetteVitesse:Number = 1;
public var etoileVitesse:Number = 2;
public var etoileMalus:Number = 2;
public var capsuleVitesse:Number = 1;
public var relanceDelai:Number = 20;
public var acceleration:Number = 1;
public var niveauxDuree:Array;
public var urlBrinicle:String = "http://www.bbc.co.uk/nature/15835017";
private var listeObject:Object;
public function ModuleConfig(param1:*)
{
this.poissonsVitesse = [1,1,1];
this.poissonsMalus = [-20,-20,-20];
this.niveauxDuree = [2,2,2,2,2,2,2,2];
this.listeObject = {};
super();
if(param1 != null && param1.length() > 0)
{
new ObjectInitializer(this,this.listeObject,param1);
}
}
public function toString() : void
{
var _loc1_:* = null;
for(_loc1_ in this.listeObject)
{
}
}
public function toXMLString() : String
{
var _loc2_:* = null;
var _loc1_:String = "<Params>\n";
for(_loc2_ in this.listeObject)
{
_loc1_ += "\t<Param nom=\"" + _loc2_ + "\" valeur=\"" + this[_loc2_] + "\"/>\n";
}
return _loc1_ + "</Params>";
}
}
}