//=============================================================================
// ** Scene Status
//=============================================================================
//=============================================================================
// * Meters Status M
//=============================================================================
function MetersStatusM() {
this.initialize.apply(this, arguments);
};
//==============================
// * create Meters
//==============================
MetersStatusM.prototype.createMeters = function() {
this._meters = [];
this._metersAni = [];
for (var i = 0; i < 9; i++) {
if (i < 3) {
this._meters = new Sprite(this._meterImg1);
} else {
this._meters = new Sprite(this._meterImg2);
};
this._metersAni = 0;
this.addChild(this._meters);
};
};
//==============================
// * update Meters
//==============================
MetersStatusM.prototype.updateMeters = function() {
for (var i = 0; i < this._meters.length; i++) {
var par1 = this._actor.hp;
var par2 = this._actor.mhp;
if (i === 0) {
var x = Moghunter.scStatus_MeterHPX;
var y = Moghunter.scStatus_MeterHPY;
par1 = this._actor.hp;
par2 = this._actor.mhp;
} else if (i === 1) {
var x = Moghunter.scStatus_MeterMPX;
var y = Moghunter.scStatus_MeterMPY;
par1 = this._actor.mp;
par2 = this._actor.mmp;
} else if (i === 2) {
var x = Moghunter.scStatus_MeterTPX;
var y = Moghunter.scStatus_MeterTPY;
par1 = this._actor.tp;
par2 = 100;
} else if (i === 3) {
var x = Moghunter.scStatus_MeterATKX;
var y = Moghunter.scStatus_MeterATKY;
par1 = this._actor.atk;
par2 = this._actor.paramMax();
} else if (i === 4) {
var x = Moghunter.scStatus_MeterMATX;
var y = Moghunter.scStatus_MeterMATY;
par1 = this._actor.mat;
par2 = this._actor.paramMax();
} else if (i === 5) {
var x = Moghunter.scStatus_MeterAGIX;
var y = Moghunter.scStatus_MeterAGIY;
par1 = this._actor.agi;
par2 = this._actor.paramMax();
} else if (i === 6) {
var x = Moghunter.scStatus_MeterDEFX;
var y = Moghunter.scStatus_MeterDEFY;
par1 = this._actor.def;
par2 = this._actor.paramMax();
} else if (i === 7) {
var x = Moghunter.scStatus_MeterMDFX;
var y = Moghunter.scStatus_MeterMDFY;
par1 = this._actor.mdf;
par2 = this._actor.paramMax();
} else {
var x = Moghunter.scStatus_MeterLUKX;
var y = Moghunter.scStatus_MeterLUKY;
par1 = this._actor.luk;
par2 = this._actor.paramMax();
};
this._meters.x = x;
this._meters.y = y;
this.updateFlow(this._meters,par1,par2,i);
};
};