Files
jpexs-decompiler/libsrc/ffdec_lib/testdata/as2/Ship.as
Jindra Petřík 04922aaf69 Separated FFDec core library and the rest (GUI).
FFDec Library is now LGPLv3, others stay GPLv3.
Version changed to 3.0.0 for FFDec, 1.0.0 for FFDec Library.
2014-08-24 17:55:42 +02:00

28 lines
402 B
ActionScript

class Ship implements Moving{
var y;
var a;
var b;
var c;
private var d=5;
// constructor
function Ship(py:Number){
y = py;
}
function moveUp(uy:Number){
y *= uy;
trace("moveUp = "+y);
}
function moveDown(dy:Number){
y *= dy;
trace("moveDown = "+y);
}
function moveLeft(lx:Number){
// empty
b = 6;
}
function moveRight(rx:Number){
// empty
trace(a);
trace(d);
}
}