Frame 2
if (this.getBytesTotal() <= this.getBytesLoaded()) {
this.gotoAndPlay(11);
}
Frame 3
_quality = "HIGH";
stop();
Frame 4
this.gotoAndPlay(11);
Frame 12
var appi = (new app.Tennis());
appi.init();
this.onEnterFrame = function () {
appi.move();
};
stop();
Symbol 30 MovieClip Frame 1
this.Bar._xscale = 0;
this.onEnterFrame = function () {
total = _parent.getBytesTotal();
now = _parent.getBytesLoaded();
per = (now * 100) / total;
this.Bar._xscale = per;
per = Math.floor(per);
if (per >= 100) {
this.Num_100.gotoAndStop(Math.floor(per / 100) + 1);
this.Num_100._visible = true;
} else {
this.Num_100.stop();
this.Num_100._visible = false;
}
if (per >= 10) {
this.Num_010.gotoAndStop(Math.floor((per % 100) / 10) + 1);
this.Num_010._visible = true;
} else {
this.Num_010.stop();
this.Num_010._visible = false;
}
this.Num_001.gotoAndStop(Math.floor(per % 10) + 1);
this.Num_001._visible = true;
if (total <= now) {
delete this.onEnterFrame;
_parent.play();
}
};
stop();
Symbol 1545 MovieClip [__Packages.app.sys.GameMode] Frame 0
class app.sys.GameMode
{
var m_mode;
function GameMode () {
m_mode = GM_NORMAL;
}
function setRankingMode() {
m_mode = GM_RANKING;
}
function setNormalMode() {
m_mode = GM_NORMAL;
}
function isRankingMode() {
return(m_mode == GM_RANKING);
}
function isNormalMode() {
return(m_mode == GM_NORMAL);
}
static var GM_NORMAL = 1;
static var GM_RANKING = 2;
}
Symbol 1546 MovieClip [__Packages.app.Tennis] Frame 0
class app.Tennis
{
var m_mode, m_fpsManager, m_flowObject, m_oldFlowObject;
function Tennis () {
m_mode = AFM_START;
}
function init() {
var _local3;
util.MovieClipFactory.init();
util.MovieClipFactory.append(_root, app.sys.Screen.OT_TOP_NUM);
_local3 = util.MovieClipFactory.create(app.sys.Screen.OT_GAME, "NoMaskMC", "MASK");
util.MovieClipFactory.append(_local3.dummy, app.sys.Screen.OT_SCREEN_NUM);
_local3._visible = true;
_local3 = util.MovieClipFactory.get(app.sys.Screen.OT_SCREEN + 0);
util.MovieClipFactory.append(_local3, app.sys.Screen.OT_GAME_NUM);
_local3 = util.MovieClipFactory.get(app.sys.Screen.OT_SCREEN + 1);
util.MovieClipFactory.append(_local3, app.sys.Screen.OT_GAME_NUM);
util.MovieClipFactory.setBasePosition(app.sys.Screen.OT_BACKGROUND);
util.MovieClipFactory.setBaseNumber(app.sys.Screen.OT_GAME_NUM);
util.MovieClipFactory.setGroupPos(app.sys.Screen.OT_SCREEN);
util.MovieClipFactory.reset();
app.sys.SysInfo.setFrameRate(24);
app.sys.SysInfo.initFirst();
app.sys.SysInfo.__get__SoundManager().setRate(app.sys.SysInfo.getRate());
app.sys.SysInfo.__get__SoundManager().setData(app.data.SoundResource.getSoundData());
var _local4 = false;
app.sys.SysInfo.__get__Debug().init(0, app.sys.Screen.HEIGHT + 20);
app.sys.SysInfo.__get__Debug().setActive(_local4);
app.sys.SysInfo.__get__Debug().setVisible(_local4);
if (_local4) {
new app.sys.FPS(0, app.sys.Screen.HEIGHT + 0);
}
m_fpsManager = new sys.FpsManager(app.sys.SysInfo.getFrameRate());
m_flowObject = undefined;
m_oldFlowObject = undefined;
_root._quality = "LOW";
}
function move() {
var _local2;
var _local3;
_local2 = m_mode;
do {
_local3 = false;
switch (_local2) {
case AFM_START :
app.sys.SysInfo.initGame();
_local2 = AFM_LOGOLOAD;
_local3 = true;
break;
case AFM_LOGOLOAD :
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.LogoLoadFlow(m_oldFlowObject);
_local2 = AFM_LOGOLOAD_LOOP;
_local3 = true;
break;
case AFM_LOGOLOAD_LOOP :
if (moveFlowObject()) {
_local2 = AFM_BAR;
_local3 = true;
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_BAR :
new app.enemy.Bar();
_local2 = AFM_TITLE;
_local3 = true;
break;
case AFM_TITLE :
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.TitleFlow(m_oldFlowObject);
m_fpsManager.reset();
_local2 = AFM_TITLE_LOOP;
_local3 = true;
break;
case AFM_TITLE_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_NEXT :
app.sys.SysInfo.initGame();
_local2 = AFM_STAGETITLE;
_local3 = true;
break;
default :
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_TOURNAMENT :
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.TournamentFlow(m_oldFlowObject);
_local2 = AFM_TOURNAMENT_LOOP;
_local3 = true;
break;
case AFM_TOURNAMENT_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_NEXT :
if (app.sys.SysInfo.getStageNum() == 2) {
_local2 = AFM_RUN_MATCH;
} else {
_local2 = AFM_STAGETITLE;
}
_local3 = true;
break;
default :
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_STAGETITLE :
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.StageTitleFlow(m_oldFlowObject);
_local2 = AFM_STAGETITLE_LOOP;
_local3 = true;
break;
case AFM_STAGETITLE_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_NEXT :
if (app.sys.SysInfo.getStageNum() == 2) {
_local2 = AFM_TOURNAMENT;
} else {
_local2 = AFM_RUN_MATCH;
}
_local3 = true;
break;
default :
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
case AFM_RUN_MATCH :
app.sys.SysInfo.initStage();
app.sys.SysInfo.updateAttr();
m_oldFlowObject = m_flowObject;
m_flowObject = new app.flow.MatchFlow(m_oldFlowObject);
m_fpsManager.reset();
_local2 = AFM_RUN_MATCH_LOOP;
_local3 = true;
break;
case AFM_RUN_MATCH_LOOP :
if (moveFlowObject()) {
switch (m_flowObject.getResult()) {
case app.sys.SceneGraph.EID_FLOW_STAGECLEAR :
app.sys.SysInfo.clearStage();
if (app.sys.SysInfo.getStageNum() == 2) {
_local2 = AFM_STAGETITLE;
} else {
_local2 = AFM_TOURNAMENT;
}
_local3 = true;
break;
case app.sys.SceneGraph.EID_FLOW_GAMEOVER :
app.sys.SysInfo.endGame();
_local2 = AFM_TITLE;
_local3 = true;
break;
case app.sys.SceneGraph.EID_FLOW_GAMECLEAR :
app.sys.SysInfo.clearGame();
_local2 = AFM_TITLE;
_local3 = true;
break;
}
m_flowObject.destroy();
m_flowObject = undefined;
}
break;
default :
trace("Error Mode:" + _local2);
}
} while (_local3);
m_mode = _local2;
}
function moveFlowObject() {
var _local3 = m_flowObject.getMode();
app.sys.SysInfo.__get__Debug().reset();
app.sys.SysInfo.move();
if (app.sys.SysInfo.isPause() != m_fpsManager.isPause()) {
m_fpsManager.pause();
}
if (!app.sys.SysInfo.isPause()) {
var _local2;
var _local4 = getTimer();
_local2 = 1;
while (_local2 > 0) {
app.sys.SysInfo.__get__SoundManager().move();
m_flowObject.move(_local3);
_local2--;
}
}
m_flowObject.disp(_local3);
app.sys.SysInfo.__get__Debug().disp();
return(m_flowObject.isEnd());
}
static var AFM_START = 0;
static var AFM_LOGOLOAD = 10;
static var AFM_LOGOLOAD_LOOP = 11;
static var AFM_BAR = 20;
static var AFM_TITLE = 100;
static var AFM_TITLE_LOOP = 101;
static var AFM_TOURNAMENT = 110;
static var AFM_TOURNAMENT_LOOP = 111;
static var AFM_STAGETITLE = 120;
static var AFM_STAGETITLE_LOOP = 121;
static var AFM_RUN_MATCH = 200;
static var AFM_RUN_MATCH_LOOP = 201;
}
Symbol 1547 MovieClip [__Packages.app.flow.Flow] Frame 0
class app.flow.Flow
{
var m_mode, m_preFlow, m_context, m_result, m_isDestroy;
function Flow (mode, preFlow) {
m_mode = mode;
m_preFlow = preFlow;
m_context = new app.sys.Context(app.sys.SysInfo.getAttr(), util.MovieClipFactory.getBase());
m_result = 0;
m_isDestroy = false;
}
function move(mode) {
}
function disp(mode) {
}
function isEnd() {
return(m_result != 0);
}
function destroy() {
m_isDestroy = true;
}
function event(id) {
m_result = id;
}
function getResult() {
return(m_result);
}
function getMode() {
return(m_mode);
}
function isDestroy() {
return(m_isDestroy);
}
function getContext() {
return(m_context);
}
static var FM_TITLE = 0;
static var FM_STAGESTART = 1;
static var FM_GAME = 2;
static var FM_FLOORCLEAR = 3;
static var FM_SCORE = 4;
static var FM_GAMEOVER = 5;
static var FM_GAMECLEAR = 6;
static var FM_OTHER = 7;
}
Symbol 1548 MovieClip [__Packages.app.sys.Context] Frame 0
class app.sys.Context
{
var m_attr, m_base;
function Context (attr, base) {
m_attr = attr;
m_base = base;
}
function getAttr() {
return(m_attr);
}
function getBase() {
return(m_base);
}
}
Symbol 1549 MovieClip [__Packages.sys.WorkList] Frame 0
class sys.WorkList
{
var m_list, m_attr;
function WorkList () {
m_list = new util.List();
}
function setAttr(attr) {
m_attr = attr;
}
function append(obj) {
return(m_list.push(obj, m_attr));
}
function appendWithAttr(obj, attr) {
return(m_list.push(obj, attr));
}
function cut(obj) {
obj.cut();
}
function callMove() {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (!_local2.m_data.move()) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
function callCtrl() {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (!_local2.m_data.ctrl()) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
function callDisp() {
var _local2 = m_list.getFirst();
while (!m_list.isLast(_local2)) {
_local2.m_data.disp();
_local2 = _local2.m_next;
}
}
function callDestroy() {
var _local2 = m_list.getFirst();
while (!m_list.isLast(_local2)) {
_local2.m_data.destroy();
_local2 = m_list.getFirst();
}
}
function callDestroyByAttr(attr) {
var _local2 = m_list.getFirst();
var _local4 = [];
var _local3;
while (!m_list.isLast(_local2)) {
if (_local2.getAttr() == attr) {
_local4.push(_local2);
}
_local2 = _local2.m_next;
}
_local3 = _local4.length - 1;
while (_local3 >= 0) {
_local4[_local3].m_data.destroy();
_local3--;
}
}
}
Symbol 1550 MovieClip [__Packages.util.List] Frame 0
class util.List
{
var m_top, m_last;
function List () {
m_top = new util.ListItem(undefined);
m_last = new util.ListItem(undefined);
m_top.m_next = m_last;
m_last.m_prev = m_top;
}
function push(data, attr) {
var _local3;
var _local2;
_local2 = new util.ListItem(data, attr);
_local3 = m_last.m_prev;
m_last.m_prev = _local2;
_local3.m_next = _local2;
_local2.m_prev = _local3;
_local2.m_next = m_last;
return(_local2);
}
function pop() {
var _local2;
var _local3;
_local2 = m_last.m_prev;
_local2.m_prev.m_next = m_last;
m_last.m_prev = _local2.m_prev;
_local3 = _local2.get();
return(_local3);
}
function unshift(data, attr) {
var _local3;
var _local2;
_local2 = new util.ListItem(data, attr);
_local3 = m_top.m_next;
m_top.m_next = _local2;
_local3.m_prev = _local2;
_local2.m_prev = m_top;
_local2.m_next = _local3;
return(_local2);
}
function shift() {
var _local2;
var _local3;
_local2 = m_top.m_next;
_local2.m_next.m_prev = m_top;
m_top.m_next = _local2.m_next;
_local3 = _local2.get();
return(_local3);
}
function cut(data) {
data.cut();
}
function getFirst() {
return(m_top.m_next);
}
function isLast(data) {
return(data == m_last);
}
function isEmpty() {
return(m_top.m_next == m_last);
}
function getLength() {
var _local3;
var _local2;
_local2 = m_top;
_local3 = 0;
while (_local2.m_next != m_last) {
_local2 = _local2.m_next;
_local3++;
}
return(_local3);
}
}
Symbol 1551 MovieClip [__Packages.util.ListItem] Frame 0
class util.ListItem
{
var m_prev, m_next, m_data, m_attr;
function ListItem (data, attr) {
m_prev = undefined;
m_next = undefined;
m_data = data;
m_attr = attr;
}
function get() {
return(m_data);
}
function cut() {
m_prev.m_next = m_next;
m_next.m_prev = m_prev;
}
function getAttr() {
return(m_attr);
}
}
Symbol 1552 MovieClip [__Packages.app.sys.SceneGraph] Frame 0
class app.sys.SceneGraph
{
var m_listener, m_context, m_scenePos, m_activeList, m_time, m_waitTime, m_waitEvent, m_encountEvent, m_labelList, m_isStop, m_frameCount, m_isFrame, m_sceneList;
function SceneGraph () {
m_listener = [];
}
function init(context) {
m_context = context;
m_scenePos = 0;
m_activeList = [];
m_time = 0;
m_waitTime = 0;
m_waitEvent = undefined;
m_encountEvent = undefined;
m_labelList = {};
m_isStop = false;
m_frameCount = 0;
m_isFrame = false;
}
function setScene(sceneList) {
var _local2;
var _local3;
m_sceneList = sceneList;
_local2 = m_sceneList.length - 1;
while (_local2 >= 0) {
_local3 = m_sceneList[_local2];
if (_local3.type == "LABEL") {
m_labelList[_local3.name] = _local2 + 1;
}
_local2--;
}
}
function move() {
var _local2;
var _local3;
var _local5;
var _local4;
if (m_isStop) {
return(undefined);
}
if (((m_waitEvent != undefined) && (m_waitEvent == m_encountEvent)) || ((m_waitEvent == undefined) && (m_time >= m_waitTime))) {
if (m_waitEvent != undefined) {
m_waitEvent = undefined;
m_time = 0;
} else {
m_time = m_time - m_waitTime;
}
do {
if (m_scenePos >= m_sceneList.length) {
break;
}
_local2 = m_sceneList[m_scenePos++];
_local4 = true;
switch (_local2.type) {
case "WAIT" :
m_waitTime = _local2.time;
m_waitEvent = undefined;
_local4 = false;
break;
case "WAITEVENT" :
m_encountEvent = undefined;
m_waitEvent = _local2.id;
_local4 = false;
break;
case "BRANCHEVENT" :
if (_local2.id == m_encountEvent) {
if (_local2.name == undefined) {
m_scenePos = 0;
} else {
m_scenePos = m_labelList[_local2.name];
}
m_time = 0;
}
break;
case "SENDEVENT" :
sendEvent(_local2.id);
break;
case "PLAYER" :
break;
case "LABEL" :
break;
case "LOOP" :
if (_local2.name == undefined) {
m_scenePos = 0;
} else {
m_scenePos = m_labelList[_local2.name];
}
break;
case "ATTR" :
app.sys.SysInfo.updateAttr();
break;
case "FRAME" :
if (_local2.flag == "ON") {
m_isFrame = true;
} else {
m_isFrame = false;
}
break;
default :
m_activeList.push({scene:_local2, time:0, count:0});
}
} while (_local4);
}
_local3 = m_activeList.length - 1;
while (_local3 >= 0) {
_local2 = m_activeList[_local3];
if (_local2.scene.type == "ENEMY") {
_local5 = enemy(_local2);
} else if (_local2.scene.type == "SOUND") {
_local5 = sound(_local2);
}
if (_local5) {
m_activeList.splice(_local3, 1);
}
_local3--;
}
m_time = m_time + app.sys.SysInfo.getSpeed();
if (m_isFrame) {
m_frameCount++;
}
}
function destroy() {
}
function stop() {
m_isStop = true;
}
function clearActiveList() {
m_activeList = [];
}
function getFrame() {
return(m_frameCount);
}
function enemy(obj) {
var _local8;
if (obj.time >= obj.scene.interval) {
var _local6;
var _local3;
_local6 = {};
for (_local3 in obj.scene.param) {
_local6[_local3] = obj.scene.param[_local3];
}
if (obj.scene.inc != undefined) {
for (_local3 in obj.scene.inc) {
_local6[_local3] = _local6[_local3] + (obj.scene.inc[_local3] * obj.count);
}
}
if (obj.scene.random != undefined) {
for (_local3 in obj.scene.random) {
var _local5;
var _local7;
var _local4;
_local5 = obj.scene.random[_local3].min;
_local7 = obj.scene.random[_local3].max;
_local4 = (Math.random() * (_local7 - _local5)) + _local5;
if (obj.scene.random[_local3].neg != undefined) {
if (Math.random() < 0.5) {
_local4 = -_local4;
}
}
_local6[_local3] = _local4;
}
}
_local6.count = obj.count;
_local8 = app.sys.EnemyFactory.create(m_context, obj.scene.id, _local6, obj.time - obj.scene.interval);
obj.time = obj.time - obj.scene.interval;
obj.count++;
}
obj.time = obj.time + app.sys.SysInfo.getSpeed();
return(obj.count >= obj.scene.count);
}
function sound(obj) {
if (obj.scene.action == "PlayMusic") {
} else if (obj.scene.action == "FadeOut") {
}
return(true);
}
function onEvent(eventID, param) {
switch (eventID) {
case EID_PLAYER_IN :
case EID_ENEMY_IN :
case EID_GAME_OVER :
case EID_STAGE_CLEAR :
case EID_SC_GAME_START :
m_encountEvent = eventID;
sendEvent(eventID, param);
break;
default :
sendEvent(eventID, param);
}
}
function addListener(listener) {
var _local2;
for (_local2 in m_listener) {
if (listener == m_listener[_local2]) {
return(undefined);
}
}
m_listener.push(listener);
}
function removeListener(listener) {
var _local2;
for (_local2 in m_listener) {
if (listener == m_listener[_local2]) {
m_listener.splice(_local2, 1);
return(undefined);
}
}
}
function sendEvent(eventID, param) {
var _local3;
var _local2;
_local2 = m_listener.length - 1;
while (_local2 >= 0) {
_local3 = app.sys.SceneGraphListener(m_listener[_local2]);
_local3.onSceneGraphEvent(eventID, param);
_local2--;
}
}
static var EID_PLAYER_IN = 1;
static var EID_ENEMY_IN = 2;
static var EID_GAME_START = 3;
static var EID_GAME_OVER = 4;
static var EID_STAGE_CLEAR = 5;
static var EID_GAME_END = 6;
static var EID_ENEMY_DESTROY = 7;
static var EID_STAGE_FINISH = 8;
static var EID_FLOW_START = 10;
static var EID_FLOW_CONTINUE = 11;
static var EID_FLOW_STAGECLEAR = 12;
static var EID_FLOW_GAMEOVER = 13;
static var EID_FLOW_GAMECLEAR = 14;
static var EID_FLOW_TITLE = 15;
static var EID_FLOW_NEXT = 16;
static var EID_STAGECONTROLL = 20;
static var EID_SC_TITLE_IN = 30;
static var EID_SC_TITLE_IN_END = 31;
static var EID_SC_GAME_IN = 40;
static var EID_SC_GAME_IN_END = 41;
static var EID_SC_GAME_START = 42;
static var EID_SC_GAMEOVER_IN = 50;
static var EID_SC_GAMEOVER_IN_END = 51;
static var EID_SC_FLOORCLEAR_IN = 60;
static var EID_SC_FLOORCLEAR_IN_END = 61;
static var EID_SC_STAGECLEAR_IN = 70;
static var EID_SC_STAGECLEAR_IN_END = 71;
static var EID_SC_GAMECLEAR_IN = 80;
static var EID_SC_GAMECLEAR_IN_END = 81;
static var EID_SC_STORY_IN = 90;
static var EID_SC_STORY_IN_END = 91;
static var EID_GAME_NEXT = 100;
}
Symbol 1553 MovieClip [__Packages.app.sys.EnemyFactory] Frame 0
class app.sys.EnemyFactory
{
function EnemyFactory () {
}
static function create(context, id, param, count) {
var _local3 = 0;
var _local1;
var _local2 = app.enemy;
do {
_local1 = id.indexOf(".", _local3);
if (_local1 == -1) {
_local2 = _local2[id.substring(_local3)];
} else {
_local2 = _local2[id.substring(_local3, _local1)];
_local3 = _local1 + 1;
}
} while (_local1 != -1);
return(_local2.create(context, param, count));
}
}
Symbol 1554 MovieClip [__Packages.app.enemy.EnemyList] Frame 0
class app.enemy.EnemyList
{
function EnemyList () {
}
}
Symbol 1555 MovieClip [__Packages.sys.WorkItem] Frame 0
class sys.WorkItem
{
function WorkItem () {
}
function init() {
}
function reset() {
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
}
function destroy() {
}
function ctrlAndDisp() {
return(true);
}
}
Symbol 1556 MovieClip [__Packages.app.enemy.Enemy] Frame 0
class app.enemy.Enemy extends sys.WorkItem
{
var m_context;
function Enemy (context) {
super();
m_context = context;
}
static var EM_ENEMY = 0;
static var EM_POWERUP = 1;
static var EM_MAX = 2;
}
Symbol 1557 MovieClip [__Packages.sys.Listener] Frame 0
interface sys.Listener
{
}
Symbol 1558 MovieClip [__Packages.app.sys.SceneGraphListener] Frame 0
interface app.sys.SceneGraphListener extends sys.Listener
{
}
Symbol 1559 MovieClip [__Packages.app.sys.Debug] Frame 0
class app.sys.Debug
{
var m_mc, m_active, m_visible, m_str;
function Debug () {
}
function init(x, y) {
m_mc = util.MovieClipFactory.create(app.sys.Screen.OT_SYSTEM, "DebugMC", "Debug");
m_mc._x = x;
m_mc._y = y;
m_active = false;
m_visible = false;
m_str = "";
}
function reset() {
if (m_active) {
m_str = "";
}
}
function setActive(active) {
if (active) {
output = activeOutput;
disp = activeDisp;
} else {
output = undefined;
disp = noDisp;
}
m_active = active;
}
function setVisible(visible) {
m_visible = visible;
}
function activeOutput(str) {
m_str = m_str + (str + newline);
}
function activeDisp() {
m_mc.str = m_str;
m_mc._visible = m_visible;
}
function noDisp() {
m_mc._visible = m_visible;
}
function output() {
}
function disp() {
}
function destroy() {
m_mc.removeMovieClip();
}
function isActive() {
return(m_active);
}
}
Symbol 1560 MovieClip [__Packages.util.MovieClipFactory] Frame 0
class util.MovieClipFactory
{
static var m_idx, m_depthList, m_mcList, m_basePos, m_baseNum, m_baseNow, m_baseGroupPos;
function MovieClipFactory () {
}
static function init() {
m_idx = 0;
m_depthList = [];
m_mcList = [];
m_basePos = -1;
m_baseNum = -1;
m_baseNow = 0;
m_baseGroupPos = 0;
}
static function reset() {
var _local1 = 0;
while (_local1 < m_idx) {
var _local2 = m_mcList[_local1];
m_depthList[_local1] = _local2.getNextHighestDepth();
_local1++;
}
}
static function append(mc, idx) {
var _local1 = 0;
while (_local1 < idx) {
mc.createEmptyMovieClip("mcf" + _local1, _local1);
m_mcList.push(mc["mcf" + _local1]);
m_depthList.push(0);
_local1++;
}
m_idx = m_idx + idx;
}
static function get(mcidx) {
return(m_mcList[mcidx]);
}
static function setBasePosition(pos) {
m_basePos = pos;
}
static function setBaseNumber(num) {
m_baseNum = num;
}
static function flip() {
if (m_baseNow == 0) {
m_baseNow = 1;
} else {
m_baseNow = 0;
}
}
static function setGroupPos(pos) {
m_baseGroupPos = pos;
}
static function setHighDepth(isHigh) {
var _local2;
var _local1;
if (m_baseNow == 0) {
_local2 = m_mcList[m_baseGroupPos];
_local1 = m_mcList[m_baseGroupPos + 1];
} else {
_local2 = m_mcList[m_baseGroupPos + 1];
_local1 = m_mcList[m_baseGroupPos];
}
if ((_local2.getDepth() > _local1.getDepth()) != isHigh) {
trace("SwapDepths");
_local2.swapDepths(_local1);
}
}
static function getCurrentMC() {
return(m_mcList[m_baseGroupPos + m_baseNow]);
}
static function getCurrentMCDepth() {
return(m_baseGroupPos + m_baseNow);
}
static function getBase() {
return(m_baseNow);
}
static function setBaseDepth(mc, depth) {
mc.MCF_base = depth;
mc.MCF_idx = depth;
}
static function create(mcidx, idname, name) {
var _local3;
var _local4;
var _local2;
if (name == undefined) {
name = MCID;
}
_local4 = m_depthList[mcidx];
_local2 = m_mcList[mcidx];
_local3 = _create(_local2, idname, name, _local4);
m_depthList[mcidx]++;
return(_local3);
}
static function createWithBase(mcidx, idname, name, base) {
mcidx = mcidx + (m_baseNum * base);
return(create(mcidx, idname, name));
}
static function createOnMc(mc, idname, name) {
var _local4;
var _local1;
if (name == undefined) {
name = MCID;
}
_local1 = mc.MCF_idx;
if (_local1 == undefined) {
_local1 = 1;
}
_local4 = _create(mc, idname, name, _local1);
mc.MCF_idx = _local1 + 1;
return(_local4);
}
static function createOnMcDec(mc, idname, name) {
var _local4;
var _local2;
if (name == undefined) {
name = MCID;
}
_local2 = mc.MCF_idx;
if (_local2 == undefined) {
_local2 = mc.MCF_base;
if (_local2 == undefined) {
_local2 = 100000 /* 0x0186A0 */;
}
}
_local4 = _create(mc, idname, name, _local2);
mc.MCF_idx = _local2 - 1;
if (mc.MCF_idx < 1) {
if (mc.MCF_base == undefined) {
mc.MCF_base = 100000 /* 0x0186A0 */;
}
mc.MCF_idx = mc.MCF_base;
}
return(_local4);
}
static function createEmptyOnMc(mc, name) {
var _local3;
var _local1;
if (name == undefined) {
name = MCID;
}
_local1 = mc.MCF_idx;
if (_local1 == undefined) {
_local1 = 1;
}
name = (name + "_") + _local1;
_local3 = mc.createEmptyMovieClip(name, _local1);
_local3._visible = false;
mc.MCF_idx = _local1 + 1;
return(_local3);
}
static function _create(mc, idname, name, depth) {
var _local2;
name = (name + "_") + depth;
mc.attachMovie(idname, name, depth);
_local2 = mc[name];
_local2._visible = false;
if (_local2 == undefined) {
trace((("MovieClipFactory." + arguments.caller) + " error: ") + idname);
}
return(_local2);
}
static var MCID = "mcfo";
}
Symbol 1561 MovieClip [__Packages.app.sys.Screen] Frame 0
class app.sys.Screen
{
function Screen () {
}
static var WIDTH = 530;
static var HEIGHT = 400;
static var GAME_WIDTH = 530;
static var GAME_HEIGHT = 400;
static var OT_MENU = 0;
static var OT_GAME = 1;
static var OT_SYSTEM = 2;
static var OT_UTIL = 3;
static var OT_TOP_NUM = 4;
static var OT_SCREEN = 4;
static var OT_SCREEN_NUM = 2;
static var OT_BACKGROUND = 6;
static var OT_BGSTAR = 7;
static var OT_BGBACK = 8;
static var OT_ENEMY = 9;
static var OT_PLAYER = 10;
static var OT_BULLET = 11;
static var OT_BGFRONT = 12;
static var OT_STATUS = 13;
static var OT_GAME_NUM = 8;
}
Symbol 1562 MovieClip [__Packages.sys.SoundManager] Frame 0
class sys.SoundManager
{
var m_mc, m_soundWork, m_freeList, m_prioList, m_updateList, m_seEnable, m_bgmEnable, m_seVolume, m_bgmVolume, m_rate, m_resource, m_music, m_fadeTime, m_fadeCount;
function SoundManager () {
m_mc = _root.createEmptyMovieClip("Sounds", 10000);
m_soundWork = [];
m_freeList = new util.List();
var _local4 = 0;
while (_local4 < SOUND_MAX) {
var _local3 = {};
var _local5;
_local5 = "snd" + _local4;
_local3.id = _local4;
_local3.idf = _local4;
_local3.mc = m_mc.createEmptyMovieClip(_local5, _local4);
_local3.snd = new Sound(_local3.mc);
_local3.func = createCallback(_local4);
_local3.sts = STS_STOP;
m_soundWork.push(_local3);
m_freeList.push(_local4);
_local4++;
}
m_prioList = [];
_local4 = 0;
while (_local4 < PRIO_MAX) {
m_prioList.push(new util.List());
_local4++;
}
m_updateList = new util.List();
m_seEnable = true;
m_bgmEnable = true;
m_seVolume = 100;
m_bgmVolume = 100;
m_rate = 50;
}
function setRate(rate) {
m_rate = rate;
}
function playSE(sname, prio, vol) {
if (!m_seEnable) {
return(undefined);
}
if (prio == undefined) {
prio = PRIO_NORMAL;
}
return(playSound(sname, prio, vol));
}
function playBGM(sname, vol) {
if (!m_bgmEnable) {
return(-1);
}
return(playSound(sname, PRIO_BGM, vol));
}
function playSound(sname, prio, vol) {
var _local2;
_local2 = getEmptyWork(prio);
if (_local2 == null) {
return(-1);
}
if (vol == undefined) {
vol = 100;
}
vol = util.Util.limitRange(vol, 0, 100);
_local2.resvol = 100;
_local2.playvol = vol;
_local2.prio = prio;
_local2.time = getTimer();
_local2.index = 0;
_local2.data = m_resource[sname];
_local2.sts = STS_PLAY;
_local2.fadeTime = 0;
_local2.fadeCount = 0;
_local2.listPrio = m_prioList[prio].push(_local2.idf);
_local2.listUpdate = undefined;
playSoundOne(_local2.idf);
return(_local2.id);
}
function playSoundOne(id) {
var _local4;
var _local3;
var _local2;
_local2 = getWork(id);
if (_local2.data.length <= _local2.index) {
freeWork(_local2.idf);
return(undefined);
}
_local3 = _local2.snd;
_local4 = _local2.data[_local2.index];
_local2.resvol = _local4.vol;
_local2.snd.setVolume(calcVolume(_local2));
_local3.attachSound(_local4.id);
if (_local4.loop != 0) {
_local3.start(0, _local4.loop);
_local3.onSoundComplete = _local2.func;
_local2.index++;
} else {
_local3.start(0, 1);
_local3.onSoundComplete = _local2.func;
}
}
function setVolume(id, vol) {
var _local4;
var _local2;
_local2 = getCheckedWork(id);
if (_local2 == null) {
return(undefined);
}
vol = util.Util.limitRange(vol, 0, 100);
_local2.playvol = vol;
_local4 = _local2.snd;
_local4.setVolume(calcVolume(_local2));
}
function stop(id) {
var _local2;
var _local3;
_local2 = getCheckedWork(id);
if (_local2 == null) {
return(undefined);
}
_local3 = _local2.snd;
_local3.stop();
freeWork(_local2.idf);
}
function stopSE() {
var _local4;
var _local2;
var _local5;
var _local3;
var _local6;
_local4 = PRIO_HIGH;
while (_local4 <= PRIO_LOW) {
_local2 = m_prioList[_local4];
while (!_local2.isEmpty()) {
_local5 = _local2.getFirst();
_local3 = Number(_local5.get());
_local6 = getWork(_local3);
stop(_local6.id);
}
_local4++;
}
}
function stopBGM() {
var _local2;
var _local4;
var _local3;
var _local5;
_local2 = m_prioList[PRIO_BGM];
while (!_local2.isEmpty()) {
_local4 = _local2.getFirst();
_local3 = Number(_local4.get());
_local5 = getWork(_local3);
stop(_local5.id);
}
}
function stopAll() {
stopSE();
stopBGM();
}
function setData(data) {
m_resource = data;
}
function setSEVolume(vol) {
var _local7;
var _local2;
var _local4;
var _local3;
var _local5;
var _local6;
m_seVolume = util.Util.limitRange(vol, 0, 100);
_local6 = PRIO_HIGH;
while (_local6 <= PRIO_LOW) {
_local7 = m_prioList[_local6];
_local2 = _local7.getFirst();
while (!_local7.isLast()) {
_local4 = Number(_local2.get());
_local3 = getWork(_local4);
_local5 = _local3.snd;
_local5.setVolume(calcVolume(_local3));
_local2 = _local2.m_next;
}
_local6++;
}
}
function setBGMVolume(vol) {
var _local6;
var _local2;
var _local4;
var _local3;
var _local5;
var _local8;
m_bgmVolume = util.Util.limitRange(vol, 0, 100);
_local6 = m_prioList[PRIO_BGM];
_local2 = _local6.getFirst();
while (!_local6.isLast()) {
_local4 = Number(_local2.get());
_local3 = getWork(_local4);
_local5 = _local3.snd;
_local5.setVolume(calcVolume(_local3));
_local2 = _local2.m_next;
}
}
function move() {
}
function destroy() {
stopAll();
var _local2 = 0;
while (_local2 < SOUND_MAX) {
var _local3 = getWork(_local2);
_local3.mc.removeMovieClip();
delete _local3.snd;
_local2++;
}
_local2 = 0;
while (_local2 < PRIO_MAX) {
delete m_prioList[_local2];
_local2++;
}
delete m_updateList;
delete m_freeList;
delete m_prioList;
delete m_soundWork;
m_mc.removeMovieClip();
}
function fadeOutMusic(musicname, time) {
if ((m_music != undefined) && (m_music.idname != musicname)) {
m_fadeTime = time;
m_fadeCount = 0;
}
}
function getEmptyWork(prio) {
var _local3;
var _local2;
if (!m_freeList.isEmpty()) {
_local2 = Number(m_freeList.pop());
} else if (!m_freeList.isEmpty()) {
_local2 = Number(m_freeList.pop());
} else {
return(null);
}
_local3 = m_soundWork[_local2];
_local3.id = _local3.id + SOUND_MAX;
return(_local3);
}
function getWork(id) {
return(m_soundWork[id]);
}
function getCheckedWork(id) {
var _local2;
if (id < 0) {
return(null);
}
_local2 = m_soundWork[id % SOUND_MAX];
if (_local2.sts == STS_STOP) {
return(null);
}
if (_local2.id != id) {
return(null);
}
return(_local2);
}
function freeWork(id) {
var _local3;
var _local2;
_local3 = getWork(id);
_local3.sts = STS_STOP;
_local2 = _local3.listPrio;
_local2.cut();
_local2 = _local3.listUpdate;
if (_local2 != null) {
_local2.cut();
}
m_freeList.push(id);
}
function calcVolume(work) {
var _local3;
if (work.prio == PRIO_BGM) {
_local3 = ((work.playvol * work.resvol) * m_bgmVolume) / 10000;
} else {
_local3 = ((work.playvol * work.resvol) * m_seVolume) / 10000;
}
return(_local3);
}
function createCallback(id) {
var _local3 = function () {
var _local3 = arguments.callee.target;
var _local4 = arguments.callee.func;
var _local2 = arguments.callee.id;
return(_local4.call(_local3, _local2));
};
_local3.target = this;
_local3.func = playSoundOne;
_local3.id = id;
return(_local3);
}
static var SOUND_MAX = 8;
static var PRIO_BGM = 0;
static var PRIO_HIGH = 1;
static var PRIO_NORMAL = 2;
static var PRIO_LOW = 3;
static var PRIO_MAX = 4;
static var STS_STOP = 0;
static var STS_PLAY = 1;
static var STS_PAUSE = 2;
}
Symbol 1563 MovieClip [__Packages.util.Util] Frame 0
class util.Util
{
function Util () {
}
static function limitRange(x, mini, maxi) {
if (x < mini) {
x = mini;
} else if (x > maxi) {
x = maxi;
}
return(x);
}
static function calcTween(startVal, endVal, per, ezVal) {
var _local2;
_local2 = startVal + ((endVal - startVal) * per);
per = per * 100;
_local2 = _local2 + (((((100 * per) - (per * per)) * ezVal) / 1000000) * (endVal - startVal));
return(_local2);
}
static function crossPos(y, x1, y1, x2, y2) {
return(x1 + (((y - y1) * (x2 - x1)) / (y2 - y1)));
}
static function crossPos2(x1, y1, x2, y2, x3, y3, x4, y4) {
var _local3;
var _local4;
var _local1;
var _local2;
var _local9;
var _local8;
_local3 = (y2 - y1) / (x2 - x1);
_local4 = y1 - (_local3 * x1);
_local1 = (y4 - y3) / (x4 - x3);
_local2 = y3 - (_local1 * x3);
_local9 = (_local4 - _local2) / (_local1 - _local3);
_local8 = _local2 + (_local1 * _local9);
return({x:_local9, y:_local8});
}
static function plusRad(rad) {
if (rad < 0) {
rad = (Math.PI*2) - ((-rad) % (Math.PI*2));
} else {
rad = rad % (Math.PI*2);
}
return(rad);
}
static function halfRad(rad) {
rad = plusRad(rad);
if (rad >= Math.PI) {
rad = Math.PI - rad;
}
return(rad);
}
static function binarySearchNear(data, chknum) {
var _local2;
var _local3;
var _local1;
_local2 = 0;
_local3 = data.length - 1;
do {
_local1 = Math.floor((_local2 + _local3) / 2);
if (data[_local1] < chknum) {
_local2 = _local1 + 1;
} else {
_local3 = _local1;
}
} while (_local2 < _local3);
_local1 = _local2;
if (_local1 == 0) {
_local1 = 1;
}
_local2 = data[_local1 - 1];
_local3 = data[_local1 + 0];
return((_local1 - 1) + ((chknum - _local2) / (_local3 - _local2)));
}
static function binarySearch(data, chknum) {
var _local2;
var _local3;
var _local1;
_local2 = 0;
_local3 = data.length - 1;
do {
_local1 = Math.floor((_local2 + _local3) / 2);
if (data[_local1] < chknum) {
_local2 = _local1 + 1;
} else if (data[_local1] > chknum) {
_local3 = _local1;
} else {
return(_local1);
}
} while (_local2 < _local3);
return(-1);
}
static function getDist(x, y) {
return(Math.sqrt((x * x) + (y * y)));
}
static function getRandomHalf(val) {
return((val * Math.random()) - (val / 2));
}
}
Symbol 1564 MovieClip [__Packages.app.sys.Option] Frame 0
class app.sys.Option
{
var m_hiScore, m_effect, m_bgm, m_se, m_operation, m_speed, m_steering, m_acceleration;
function Option () {
m_hiScore = INIT_HISCORE;
m_effect = true;
m_bgm = true;
m_se = true;
m_operation = true;
m_speed = 0;
m_steering = 0;
m_acceleration = 0;
}
function load() {
var _local2;
_local2 = SharedObject.getLocal((SO_ID + "_") + VERSION);
if (_local2.data.HiScore == undefined) {
_local2.data.HiScore = INIT_HISCORE;
}
if (_local2.data.Effect == undefined) {
_local2.data.Effect = true;
}
if (_local2.data.Bgm == undefined) {
_local2.data.Bgm = true;
}
if (_local2.data.Se == undefined) {
_local2.data.Se = true;
}
if (_local2.data.Operation == undefined) {
_local2.data.Operation = true;
}
if (_local2.data.Speed == undefined) {
_local2.data.Speed = 0;
}
if (_local2.data.Steering == undefined) {
_local2.data.Steering = 0;
}
if (_local2.data.Acceleration == undefined) {
_local2.data.Acceleration = 0;
}
HiScore = (_local2.data.HiScore);
Effect = (_local2.data.Effect);
Bgm = (_local2.data.Bgm);
Se = (_local2.data.Se);
Operation = (_local2.data.Operation);
Speed = (_local2.data.Speed);
Steering = (_local2.data.Steering);
Acceleration = (_local2.data.Acceleration);
}
function save() {
var _local2;
_local2 = SharedObject.getLocal((SO_ID + "_") + VERSION);
_local2.data.HiScore = HiScore;
_local2.data.Effect = Effect;
_local2.data.Bgm = Bgm;
_local2.data.Se = Se;
_local2.data.Operation = Operation;
_local2.data.Steering = Steering;
_local2.data.Speed = Speed;
_local2.data.Acceleration = Acceleration;
_local2.flush(512);
}
function get HiScore() {
return(m_hiScore);
}
function set HiScore(score) {
if (m_hiScore < score) {
m_hiScore = score;
}
//return(HiScore);
}
function get Effect() {
return(m_effect);
}
function set Effect(onoff) {
m_effect = onoff;
//return(Effect);
}
function get Bgm() {
return(m_bgm);
}
function set Bgm(onoff) {
m_bgm = onoff;
//return(Bgm);
}
function get Se() {
return(m_se);
}
function set Se(onoff) {
m_se = onoff;
//return(Se);
}
function get Operation() {
return(m_operation);
}
function set Operation(onoff) {
m_operation = onoff;
//return(Operation);
}
function get Speed() {
return(m_speed);
}
function set Speed(val) {
m_speed = limitPoint(val);
//return(Speed);
}
function get Steering() {
return(m_steering);
}
function set Steering(val) {
m_steering = limitPoint(val);
//return(Steering);
}
function get Acceleration() {
return(m_acceleration);
}
function set Acceleration(val) {
m_acceleration = limitPoint(val);
//return(Acceleration);
}
function limitPoint(val) {
val = Math.floor(val);
if (val < 0) {
val = 0;
} else if (val > 5) {
val = 5;
}
return(val);
}
static var SO_ID = "HMR";
static var VERSION = 0;
static var INIT_HISCORE = 10000;
}
Symbol 1565 MovieClip [__Packages.app.sys.Collision] Frame 0
class app.sys.Collision
{
var m_playerIsCheck, m_computerIsCheck, m_playerX, m_playerY, m_playerZ, m_playerXS, m_playerYS, m_playerZS, m_computerX, m_computerY, m_computerZ, m_computerXS, m_computerYS, m_computerZS;
function Collision () {
}
function init() {
m_playerIsCheck = false;
m_computerIsCheck = false;
}
function reset() {
}
function setPlayerCheck(x, y, z, xs, ys, zs) {
m_playerIsCheck = true;
m_playerX = x;
m_playerY = y;
m_playerZ = z;
m_playerXS = xs;
m_playerYS = ys;
m_playerZS = zs;
}
function setComputerCheck(x, y, z, xs, ys, zs) {
m_computerIsCheck = true;
m_computerX = x;
m_computerY = y;
m_computerZ = z;
m_computerXS = xs;
m_computerYS = ys;
m_computerZS = zs;
}
function hitCheck() {
var _local2 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
if (!_local2.isAuto()) {
return(undefined);
}
if (util.Util.plusRad(_local2.getDir()) > Math.PI) {
if (checkComputer()) {
} else if (checkNet()) {
} else if (checkPlayer()) {
}
} else if (checkPlayer()) {
} else if (checkNet()) {
} else if (checkComputer()) {
} else if (checkWall()) {
}
m_playerIsCheck = false;
m_computerIsCheck = false;
}
function checkComputer() {
var _local2;
if (!m_computerIsCheck) {
return(false);
}
_local2 = checkHuman(m_computerX, m_computerY, m_computerZ, m_computerXS, m_computerYS, m_computerZS);
if (_local2) {
app.sys.SysInfo.__get__MatchInfo().__get__Computer().hit();
}
return(_local2);
}
function checkPlayer() {
var _local2;
if (!m_playerIsCheck) {
return(false);
}
_local2 = checkHuman(m_playerX, m_playerY, m_playerZ, m_playerXS, m_playerYS, m_playerZS);
if (_local2) {
app.sys.SysInfo.__get__MatchInfo().__get__Player().hit();
}
return(_local2);
}
function checkNet() {
var _local7 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
var _local3;
var _local4;
var _local2;
var _local1;
var _local6;
var _local5;
_local3 = _local7.getOldPosition();
_local4 = _local7.getPosition();
_local2 = _local3.y;
_local1 = _local4.y;
if (_local2 > _local1) {
_local1 = _local3.y;
_local2 = _local4.y;
}
_local6 = app.sys.Param.COURT_HEIGHT / 2;
_local5 = app.sys.Param.COURT_HEIGHT / 2;
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
_local2 = _local3.x;
_local1 = _local4.x;
if (_local2 > _local1) {
_local1 = _local3.x;
_local2 = _local4.x;
}
_local6 = (-app.sys.Param.NET_WIDTH) / 2;
_local5 = app.sys.Param.NET_WIDTH / 2;
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
_local1 = _local3.z + (((_local4.z - _local3.z) * ((app.sys.Param.COURT_HEIGHT / 2) - _local3.y)) / (_local4.y - _local3.y));
_local2 = _local1;
_local6 = 0;
_local5 = app.sys.Param.NET_HEIGHT;
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
app.sys.SysInfo.__get__MatchInfo().__get__Ball().hit();
return(true);
}
function checkWall() {
var _local3 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
var _local4;
var _local5;
var _local2;
var _local1;
var _local7;
var _local6;
_local4 = _local3.getOldPosition();
_local5 = _local3.getPosition();
_local2 = _local4.y;
_local1 = _local5.y;
if (_local2 > _local1) {
_local1 = _local4.y;
_local2 = _local5.y;
}
_local7 = app.sys.Param.COURT_HEIGHT + 2;
_local6 = app.sys.Param.COURT_HEIGHT + 2;
if (!((_local2 < _local6) && (_local1 > _local7))) {
return(false);
}
app.sys.SysInfo.__get__MatchInfo().__get__Ball().hit();
return(true);
}
function checkHuman(x, y, z, xs, ys, zs) {
var _local7 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
var _local3;
var _local4;
var _local2;
var _local1;
var _local6;
var _local5;
_local3 = _local7.getOldPosition();
_local4 = _local7.getPosition();
_local2 = _local3.y;
_local1 = _local4.y;
if (_local2 > _local1) {
_local1 = _local3.y;
_local2 = _local4.y;
}
_local6 = y - (ys / 2);
_local5 = y + (ys / 2);
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
_local2 = _local3.x;
_local1 = _local4.x;
if (_local2 > _local1) {
_local1 = _local3.x;
_local2 = _local4.x;
}
_local6 = x - (xs / 2);
_local5 = x + (xs / 2);
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
_local2 = _local3.z;
_local1 = _local4.z;
if (_local2 > _local1) {
_local1 = _local3.z;
_local2 = _local4.z;
}
_local6 = z - (zs / 2);
_local5 = z + (zs / 2);
if (!((_local2 < _local5) && (_local1 > _local6))) {
return(false);
}
return(true);
}
function destroy() {
}
}
Symbol 1566 MovieClip [__Packages.app.enemy.Ball] Frame 0
class app.enemy.Ball extends app.enemy.Enemy
{
static var m_totalTime, m_time, m_boundTimeIdx, m_boundTimeList, m_boundParamList, m_baseX, m_baseY, m_baseZ, m_baseSpeed, m_baseRad, m_baseDir;
var m_courtParam, m_sortList, m_mcList, m_idx, m_x, m_y, m_z, m_dir, m_rad, m_speed, m_count, m_isAuto, m_wl, m_context, m_downList, m_dropBallSpeedList, m_lobBallSpeedList, m_pointList, m_traceList, m_futureList, m_futureCurIdx, m_futureEndIdx;
function Ball (context, sortList, courtParam) {
super(context);
m_courtParam = courtParam;
m_sortList = sortList;
m_mcList = [];
m_idx = 0;
m_x = 0;
m_y = 11.885;
m_z = 1;
m_dir = 0;
m_rad = 0;
m_speed = 0;
m_count = 0;
m_isAuto = false;
clear();
initFuture();
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
m_dir = (Math.PI/2);
m_rad = 0;
m_speed = 2.77777777777778;
var _local3;
var _local4;
var _local5;
m_downList = [];
_local3 = 0;
while (_local3 < (DOWN_TIME * 96)) {
_local4 = ((app.sys.SysInfo.getRate() * _local3) / 4) / 1000;
_local5 = MDK * (((MDK * GRAVITY) * (1 - Math.exp((-KDM) * _local4))) - (GRAVITY * _local4));
m_downList.push(-_local5);
_local3++;
}
m_dropBallSpeedList = calcShotParam(24, 0.261799387799149);
m_lobBallSpeedList = calcShotParam(32, 0.436332312998582);
}
function move() {
var _local2;
var _local3;
var _local8;
var _local6;
var _local5;
var _local7;
var _local9;
var _local4;
if (m_isAuto) {
m_count++;
m_idx++;
if (m_idx >= m_pointList.length) {
m_idx = 0;
}
_local4 = 0;
while (_local4 < HISTORY_MAX) {
m_totalTime = m_totalTime + ((app.sys.SysInfo.getRate() / 1000) / HISTORY_MAX);
m_time = m_time + ((app.sys.SysInfo.getRate() / 1000) / HISTORY_MAX);
if (m_boundTimeList[m_boundTimeIdx] <= m_totalTime) {
if ((m_boundParamList.length - 1) <= m_boundTimeIdx) {
_local2 = m_boundParamList[m_boundTimeIdx - 1];
m_baseX = _local2.x;
m_baseY = _local2.y;
m_baseZ = _local2.z;
m_baseSpeed = 0;
m_baseRad = _local2.rad;
m_time = 0;
} else {
_local2 = m_boundParamList[m_boundTimeIdx];
m_baseX = _local2.x;
m_baseY = _local2.y;
m_baseZ = _local2.z;
m_baseSpeed = _local2.speed;
m_baseRad = _local2.rad;
playBoundSE(m_baseSpeed, m_baseY);
m_time = m_totalTime - m_boundTimeList[m_boundTimeIdx];
m_boundTimeIdx++;
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitGround(m_baseX, m_baseY);
}
}
_local7 = m_baseSpeed * Math.cos(m_baseRad);
_local9 = m_baseSpeed * Math.sin(m_baseRad);
_local8 = (MDK * _local7) * (1 - Math.exp((-KDM) * m_time));
m_x = m_baseX + (_local8 * Math.cos(m_baseDir));
m_y = m_baseY + (_local8 * Math.sin(m_baseDir));
m_z = m_baseZ + (MDK * (((_local9 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * m_time))) - (GRAVITY * m_time)));
_local6 = _local7 * Math.exp((-KDM) * m_time);
_local5 = ((_local9 + (MDK * GRAVITY)) * Math.exp((-KDM) * m_time)) - (MDK * GRAVITY);
m_speed = Math.sqrt((_local6 * _local6) + (_local5 * _local5));
m_rad = Math.atan2(_local5, _local6);
_local3 = m_traceList[_local4];
_local3.x = m_x;
_local3.y = m_y;
_local3.z = m_z;
_local3.idx = ((m_count + _local4) - HISTORY_MAX) + 1;
_local4++;
}
_local3 = m_pointList[m_idx];
_local3.x = m_x;
_local3.y = m_y;
_local3.z = m_z;
_local3.idx = m_count;
}
return(true);
}
function hit() {
var _local3;
var _local2;
_local2 = getPosition();
_local3 = getOldPosition();
if (_local2.y >= (app.sys.Param.COURT_HEIGHT + 2)) {
setPosition(_local2.x, ((app.sys.Param.COURT_HEIGHT + 2) * 2) - _local2.y, _local2.z);
setPower(m_speed, (Math.PI*2) - m_dir, m_rad);
playBoundSE(m_speed, app.sys.Param.COURT_HEIGHT + 2);
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitGround(m_x, m_y);
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitWall();
} else {
if (_local3.y > _local2.y) {
setPosition(_local2.x, (app.sys.Param.COURT_HEIGHT / 2) + 0.2, _local2.z);
setPower(m_speed / 10, (Math.PI/2), 0);
} else {
setPosition(_local2.x, (app.sys.Param.COURT_HEIGHT / 2) - 0.2, _local2.z);
setPower(m_speed / 10, 4.71238898038469, 0);
}
app.sys.SysInfo.__get__SoundManager().playSE("Net", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(m_y));
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitNet();
}
}
function ctrl() {
return(true);
}
function disp() {
var _local2;
var _local8;
var _local5;
var _local4;
var _local3;
var _local7;
var _local9;
var _local10;
var _local6;
while (m_mcList.length > 0) {
_local2 = MovieClip(m_mcList.pop());
_local2.removeMovieClip();
}
_local8 = m_traceList.sortOn("y", Array.NUMERIC | Array.RETURNINDEXEDARRAY);
_local5 = app.sys.SysInfo.__get__MatchInfo().__get__Court().getDepthList();
_local4 = 0;
_local6 = _local8.length - 1;
while (_local6 >= 0) {
_local3 = m_traceList[_local8[_local6]];
if (_local3.idx >= 0) {
while ((_local5.length > _local4) && (_local5[_local4] > _local3.y)) {
_local4++;
}
_local7 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayPosition(_local3.x, _local3.y);
_local9 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayScale(_local3.y);
_local10 = 100 - (((m_count - _local3.idx) * 100) / HISTORY_MAX);
_local2 = util.MovieClipFactory.createOnMc(m_sortList[_local4 * 2], "BallMC", "Ball");
_local2._x = _local7.x;
_local2._y = _local7.y;
_local2._xscale = (_local2._yscale = _local9 * 100);
_local2._alpha = _local10;
_local2._visible = true;
_local2.Ball._y = -89.2828364222401 * _local3.z;
m_mcList.push(_local2);
}
_local6--;
}
}
function destroy() {
var _local2;
while (m_mcList.length > 0) {
_local2 = MovieClip(m_mcList.pop());
_local2.removeMovieClip();
}
app.sys.SysInfo.__get__WorkList().cut(m_wl);
}
function initFuture() {
var _local2;
m_futureList = [];
_local2 = 0;
while (_local2 < FUTURE_MAX) {
m_futureList.push({x:0, y:0, z:0, speed:0, rad:0, dir:0, hit:false, gx:0, gy:0});
_local2++;
}
m_futureCurIdx = 0;
m_futureEndIdx = 0;
}
function updateFuture(isFirst) {
var _local12;
var _local14;
var _local13;
var _local10;
var _local6;
var _local7;
var _local16;
var _local11;
var _local9;
var _local3;
var _local17;
var _local8;
var _local5;
var _local4;
var _local2;
var _local15;
m_boundTimeList = [];
m_boundParamList = [];
m_boundTimeIdx = 1;
_local14 = m_x;
_local13 = m_y;
_local10 = m_z;
_local6 = m_speed;
_local7 = m_rad;
_local16 = m_dir;
_local2 = {};
_local2.x = _local14;
_local2.y = _local13;
_local2.z = _local10;
_local2.dx = 0;
_local2.speed = _local6;
_local2.rad = _local7;
m_boundTimeList.push(0);
m_boundParamList.push(_local2);
_local15 = 0;
_local12 = 0;
while (_local12 < BOUND_CNT) {
_local11 = _local6 * Math.cos(_local7);
_local9 = _local6 * Math.sin(_local7);
_local3 = Math.log((_local9 + (MDK * GRAVITY)) / (MDK * GRAVITY)) * MDK;
_local17 = (MDK * (((_local9 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local3))) - (GRAVITY * _local3))) + _local10;
_local3 = _local3 + (((util.Util.binarySearchNear(m_downList, _local17) * app.sys.SysInfo.getRate()) / 4) / 1000);
_local8 = (MDK * _local11) * (1 - Math.exp((-KDM) * _local3));
_local14 = _local14 + (_local8 * Math.cos(_local16));
_local13 = _local13 + (_local8 * Math.sin(_local16));
_local10 = 0;
_local5 = _local11 * Math.exp((-KDM) * _local3);
_local4 = ((_local9 + (MDK * GRAVITY)) * Math.exp((-KDM) * _local3)) - (MDK * GRAVITY);
_local5 = _local5 * m_courtParam.SpeedRate;
_local4 = _local4 * (-m_courtParam.BoundRate);
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
_local7 = Math.atan2(_local4, _local5);
_local2 = {};
_local2.x = _local14;
_local2.y = _local13;
_local2.z = _local10;
_local2.dx = _local8;
_local2.speed = _local6;
_local2.rad = _local7;
_local15 = _local15 + _local3;
m_boundTimeList.push(_local15);
m_boundParamList.push(_local2);
_local12++;
}
}
function calcShotParam(distCnt, targetDir) {
var _local7;
var _local4;
var _local6;
var _local5;
var _local2;
var _local3;
var _local9;
var _local10;
_local10 = [];
_local7 = 0;
while (_local7 < distCnt) {
setPosition(0, 0, 1);
_local4 = 20;
_local6 = 2.77777777777778;
_local5 = 41.6666666666667;
_local9 = 0.000174532925199433;
do {
_local2 = (_local6 + _local5) / 2;
_local3 = getShotRad(0, _local7, _local2);
if (Math.abs(_local3 - targetDir) < _local9) {
break;
}
if (_local3 < targetDir) {
_local5 = _local2;
} else {
_local6 = _local2;
}
_local4--;
} while (_local4 > 0);
_local10.push(_local2);
_local7++;
}
return(_local10);
}
function playBoundSE(speed, y) {
if (speed >= 11.1111111111111) {
app.sys.SysInfo.__get__SoundManager().playSE("BoundPowerful", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(y));
} else if (speed >= 2.77777777777778) {
app.sys.SysInfo.__get__SoundManager().playSE("Bound", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(y));
} else {
app.sys.SysInfo.__get__SoundManager().playSE("Bound", sys.SoundManager.PRIO_NORMAL, (app.util.AppUtil.getVolume(y) * speed) / 2.77777777777778);
}
}
function clear() {
m_pointList = [];
m_traceList = [];
var _local2 = 0;
while (_local2 < HISTORY_MAX) {
m_pointList.push({x:0, y:0, z:0, idx:-1});
m_traceList.push({x:0, y:0, z:0, idx:-1});
_local2++;
}
}
function setPosition(x, y, z) {
m_x = x;
m_y = y;
m_z = z;
m_pointList[m_idx].x = x;
m_pointList[m_idx].y = y;
m_pointList[m_idx].z = z;
m_traceList[m_idx].x = x;
m_traceList[m_idx].y = y;
m_traceList[m_idx].z = z;
}
function setPower(power, dir, rad) {
m_speed = power;
m_dir = dir;
m_rad = rad;
m_baseX = m_x;
m_baseY = m_y;
m_baseZ = m_z;
m_baseSpeed = m_speed;
m_baseRad = m_rad;
m_baseDir = m_dir;
m_totalTime = 0;
m_time = 0;
updateFuture(true);
}
function setAutoMode(isAuto) {
m_isAuto = isAuto;
}
function updatePosition(x, y, z) {
var _local2;
m_count++;
m_idx++;
if (m_idx >= m_pointList.length) {
m_idx = 0;
}
_local2 = m_pointList[m_idx];
_local2.x = x;
_local2.y = y;
_local2.z = z;
_local2.idx = m_count;
m_x = x;
m_y = y;
m_z = z;
_local2 = m_traceList[0];
_local2.x = x;
_local2.y = y;
_local2.z = z;
_local2.idx = m_count;
}
function getPosition() {
return(m_pointList[m_idx]);
}
function getOldPosition() {
var _local2;
_local2 = m_idx - 1;
if (_local2 < 0) {
_local2 = m_pointList.length - 1;
}
if (m_pointList[_local2].idx == -1) {
_local2 = m_idx;
}
return(m_pointList[_local2]);
}
function getPositionX() {
return(m_pointList[m_idx].x);
}
function getPositionY() {
return(m_pointList[m_idx].y);
}
function getPositionZ() {
return(m_pointList[m_idx].z);
}
function getDir() {
return(m_dir);
}
function getSpeed() {
return(m_speed);
}
function getSpeedY() {
var _local2;
_local2 = m_speed * Math.cos(m_rad);
_local2 = _local2 * Math.sin(m_dir);
_local2 = Math.abs(_local2);
return(_local2);
}
function getSpeedX() {
var _local2;
_local2 = m_speed * Math.cos(m_rad);
_local2 = _local2 * Math.cos(m_dir);
_local2 = Math.abs(_local2);
return(_local2);
}
function getSpeedZ() {
var _local2;
_local2 = m_speed * Math.sin(m_rad);
return(_local2);
}
function isAuto() {
return(m_isAuto);
}
function getReachTime(posY) {
var _local5;
var _local8;
var _local4;
var _local3;
var _local9;
var _local6;
var _local7;
var _local2;
_local8 = Math.abs(posY - m_boundParamList[0].y);
_local5 = getDir() % Math.PI;
_local5 = ((_local5 >= (Math.PI/2)) ? (Math.PI - _local5) : (_local5));
_local4 = _local8 / Math.sin(_local5);
_local3 = 1;
do {
_local2 = m_boundParamList[_local3];
if (_local2.dx > _local4) {
break;
}
_local4 = _local4 - _local2.dx;
_local3++;
if (_local3 >= m_boundParamList.length) {
return(NaN);
}
} while (_local2.dx < _local4);
_local2 = m_boundParamList[_local3 - 1];
_local7 = _local2.speed * Math.cos(_local2.rad);
_local9 = _local4;
_local6 = MDK * Math.log(1 / (1 - ((_local9 * KDM) / _local7)));
return(((m_boundTimeList[_local3 - 1] + _local6) - m_totalTime) * 1000);
}
function getReachHeight(posY) {
var _local9;
var _local7;
var _local4;
var _local3;
var _local10;
var _local5;
var _local8;
var _local6;
var _local11;
var _local2;
_local7 = posY - m_boundParamList[0].y;
_local9 = getDir();
_local4 = _local7 / Math.sin(_local9);
_local3 = 1;
do {
_local2 = m_boundParamList[_local3];
if (_local2.dx > _local4) {
break;
}
_local4 = _local4 - _local2.dx;
_local3++;
if (_local3 >= 3) {
return(NaN);
}
} while (true);
_local2 = m_boundParamList[_local3 - 1];
_local6 = _local2.speed * Math.cos(_local2.rad);
_local11 = _local2.speed * Math.sin(_local2.rad);
_local10 = _local4;
_local5 = MDK * Math.log(1 / (1 - ((_local10 * KDM) / _local6)));
_local8 = _local2.z + (MDK * (((_local11 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local5))) - (GRAVITY * _local5)));
return(_local8);
}
function getShotRad(x, y, speed) {
var _local8;
var _local5;
var _local10;
var _local7;
var _local2;
var _local6;
var _local12;
var _local3;
var _local11;
var _local9;
var _local4;
var _local14;
_local8 = util.Util.getDist(x - m_x, y - m_y);
_local10 = -0.698131700797732;
_local7 = 0.698131700797732;
_local4 = MDK * GRAVITY;
_local14 = (app.sys.SysInfo.getRate() / 4) / 1000;
_local9 = 16;
do {
_local2 = (_local10 + _local7) / 2;
_local12 = speed * Math.cos(_local2);
_local6 = speed * Math.sin(_local2);
_local3 = Math.log((_local6 + _local4) / _local4) * MDK;
_local11 = (MDK * (((_local6 + _local4) * (1 - Math.exp((-KDM) * _local3))) - (GRAVITY * _local3))) + m_z;
_local3 = _local3 + (util.Util.binarySearchNear(m_downList, _local11) * _local14);
_local5 = (MDK * _local12) * (1 - Math.exp((-KDM) * _local3));
if (Math.abs(_local5 - _local8) < 0.05) {
return(_local2);
}
if (_local5 > _local8) {
_local7 = _local2;
} else {
_local10 = _local2;
}
_local9--;
} while (_local9 > 0);
_local2 = _local7;
return(_local2);
}
function adjustShotRad(checkY, speed, rad, dir, shotDist) {
var _local12;
var _local6;
var _local4;
var _local9;
var _local2;
var _local7;
var _local8;
var _local3;
var _local10;
var _local16;
var _local5;
_local6 = speed * Math.cos(rad);
_local4 = speed * Math.sin(rad);
_local9 = (checkY - m_y) / Math.sin(dir);
_local2 = MDK * Math.log(1 / (1 - ((_local9 * KDM) / _local6)));
_local7 = (MDK * (((_local4 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local2))) - (GRAVITY * _local2))) + m_z;
if (_local7 > (app.sys.Param.NET_HEIGHT + 0.1)) {
return(undefined);
}
_local10 = app.sys.Param.NET_HEIGHT + 0.2;
_local5 = 0;
while (_local5 < 10) {
_local4 = ((((_local10 - m_z) / MDK) + (GRAVITY * _local2)) / (1 - Math.exp((-KDM) * _local2))) - (MDK * GRAVITY);
_local3 = Math.log((_local4 + (MDK * GRAVITY)) / (MDK * GRAVITY)) * MDK;
_local8 = MDK * (((_local4 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local3))) - (GRAVITY * _local3));
_local3 = _local3 + (((util.Util.binarySearchNear(m_downList, _local8 + m_z) * app.sys.SysInfo.getRate()) / 4) / 1000);
_local6 = (shotDist / MDK) / (1 - Math.exp((-KDM) * _local3));
_local2 = MDK * Math.log(1 / (1 - ((_local9 * KDM) / _local6)));
_local7 = (MDK * (((_local4 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local2))) - (GRAVITY * _local2))) + m_z;
if (_local7 > (app.sys.Param.NET_HEIGHT + 0.1)) {
break;
}
_local5++;
}
speed = Math.sqrt((_local4 * _local4) + (_local6 * _local6));
rad = Math.atan2(_local4, _local6);
_local12 = {};
_local12.speed = speed;
_local12.rad = rad;
return(_local12);
}
function getHeightParam(checkY, speed, rad, dir) {
var _local3 = {};
var _local6;
var _local4;
var _local8;
var _local5;
var _local2;
var _local7;
_local6 = speed * Math.cos(rad);
_local4 = speed * Math.sin(rad);
_local8 = Math.abs((checkY - m_y) / Math.sin(dir));
_local2 = MDK * Math.log(1 / (1 - ((_local8 * KDM) / _local6)));
_local5 = Math.log((_local4 + (MDK * GRAVITY)) / (MDK * GRAVITY)) * MDK;
_local7 = (MDK * (((_local4 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local2))) - (GRAVITY * _local2))) + m_z;
_local3.upHit = _local5 > _local2;
_local3.z = _local7;
_local3.t = _local2;
return(_local3);
}
function getJustY() {
var _local3;
var _local5;
var _local9;
var _local8;
var _local6;
var _local10;
var _local7;
var _local2;
var _local4;
var _local11;
_local3 = m_boundParamList[1];
_local5 = _local3.speed;
_local6 = _local3.rad;
_local10 = m_dir;
_local7 = _local3.y;
_local9 = _local5 * Math.cos(_local6);
_local8 = _local5 * Math.sin(_local6);
_local2 = Math.log((_local8 + (MDK * GRAVITY)) / (MDK * GRAVITY)) * MDK;
_local4 = MDK * (((_local8 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local2))) - (GRAVITY * _local2));
if (_local4 > 1) {
_local2 = _local2 + (((util.Util.binarySearchNear(m_downList, _local4 - 1) * app.sys.SysInfo.getRate()) / 4) / 1000);
}
_local11 = (MDK * _local9) * (1 - Math.exp((-KDM) * _local2));
_local7 = _local7 + (_local11 * Math.sin(_local10));
return(_local7);
}
function getJustList() {
var _local4;
var _local8;
var _local7;
var _local11;
var _local9;
var _local5;
var _local18;
var _local17;
var _local15;
var _local2;
var _local3;
var _local10;
var _local14;
var _local13;
var _local6;
var _local12;
_local12 = [];
_local6 = 0;
while (_local6 < 2) {
_local4 = m_boundParamList[_local6];
_local8 = _local4.speed;
_local9 = _local4.rad;
_local5 = m_dir;
_local17 = _local4.y;
_local18 = _local4.x;
_local7 = _local8 * Math.cos(_local9);
_local11 = _local8 * Math.sin(_local9);
_local15 = Math.log((_local11 + (MDK * GRAVITY)) / (MDK * GRAVITY)) * MDK;
_local2 = MDK * (((_local11 + (MDK * GRAVITY)) * (1 - Math.exp((-KDM) * _local15))) - (GRAVITY * _local15));
if (_local2 > 2.5) {
_local10 = _local15 + (((util.Util.binarySearchNear(m_downList, _local2 - 2.5) * app.sys.SysInfo.getRate()) / 4) / 1000);
_local3 = (MDK * _local7) * (1 - Math.exp((-KDM) * _local10));
_local14 = _local18 + (_local3 * Math.cos(_local5));
_local13 = _local17 + (_local3 * Math.sin(_local5));
_local12.push({x:_local14, y:_local13, z:2.5, t:_local10});
}
if (_local2 > 1) {
_local15 = _local15 + (((util.Util.binarySearchNear(m_downList, _local2 - 1) * app.sys.SysInfo.getRate()) / 4) / 1000);
_local2 = 1;
}
_local3 = (MDK * _local7) * (1 - Math.exp((-KDM) * _local15));
_local18 = _local18 + (_local3 * Math.cos(_local5));
_local17 = _local17 + (_local3 * Math.sin(_local5));
_local12.push({x:_local18, y:_local17, z:_local2, t:_local15});
_local6++;
}
return(_local12);
}
function getDropBallSpeed(x, y) {
var _local4;
var _local2;
var _local3;
var _local5;
_local4 = util.Util.getDist(m_x - x, m_y - y);
_local2 = Math.floor(_local4);
_local3 = m_dropBallSpeedList[_local2];
_local5 = m_dropBallSpeedList[_local2 + 1];
return(_local3 + ((_local5 - _local3) * (_local4 - _local2)));
}
function getLobBallSpeed(x, y) {
var _local4;
var _local2;
var _local3;
var _local5;
_local4 = util.Util.getDist(m_x - x, m_y - y);
_local2 = Math.floor(_local4);
_local3 = m_lobBallSpeedList[_local2];
_local5 = m_lobBallSpeedList[_local2 + 1];
return(_local3 + ((_local5 - _local3) * (_local4 - _local2)));
}
static var HISTORY_MAX = 5;
static var GRAVITY = 9.8;
static var AIR_REG = 0.02;
static var FUTURE_MAX = 24;
static var AIR_REGST = 0.3;
static var MDK = 1 / AIR_REGST;
static var KDM = AIR_REGST / 1;
static var DOWN_TIME = 4;
static var BOUND_CNT = 10;
}
Symbol 1567 MovieClip [__Packages.app.sys.Param] Frame 0
class app.sys.Param
{
function Param () {
}
static var COURT_WIDTH = 8.23;
static var COURT_HEIGHT = 23.77;
static var NET_WIDTH = 10.058;
static var NET_HEIGHT = 0.914;
static var SERVE_Y = 0;
static var LOGO_FILENAME = "logo.swf";
static var LOGO_WIDTH = 380;
static var LOGO_HEIGHT = 60;
static var LOGO_TOURNAMENT_SCALE = 43.1;
static var LOGO_WALL_SCALE = 35.7;
static var LOGO_BOARD_SCALE = 37.5;
static var LOGO_BAR_SCALE = 38.7;
static var LOGO_TITLE_SCALE = 44.6;
static var LOGO_MEDAL_SCALE = 76.4;
static var LOGO_DIAGRAM_SCALE = 10.7;
static var LOGO_IDX_TOURNAMENT = 0;
static var LOGO_IDX_WALL = 1;
static var LOGO_IDX_BOARD = 2;
static var LOGO_IDX_BAR = 3;
static var LOGO_IDX_TITLE = 4;
static var LOGO_IDX_MEDAL = 5;
static var LOGO_IDX_DIAGRAM = 6;
static var BANNER_FILENAME = "banner.jpg";
static var STAGE_MAX = 4;
static var GAME_MAX = 4;
}
Symbol 1568 MovieClip [__Packages.app.util.AppUtil] Frame 0
class app.util.AppUtil
{
function AppUtil () {
}
static function getVolume(pos) {
var _local1;
_local1 = Math.floor(100 - ((pos / app.sys.Param.COURT_HEIGHT) * 50));
if (_local1 < 0) {
_local1 = 0;
} else if (_local1 > 100) {
_local1 = 100;
}
return(_local1);
}
}
Symbol 1569 MovieClip [__Packages.app.sys.MatchInfo] Frame 0
class app.sys.MatchInfo
{
var m_court, m_player, m_com, m_ball, m_courtInfo, m_logoBitmapList, m_bannerBitmap, m_matchLoop;
function MatchInfo () {
}
function get Court() {
return(m_court);
}
function set Court(court) {
m_court = court;
//return(Court);
}
function get Player() {
return(m_player);
}
function set Player(player) {
m_player = player;
//return(Player);
}
function get Computer() {
return(m_com);
}
function set Computer(com) {
m_com = com;
//return(Computer);
}
function get Ball() {
return(m_ball);
}
function set Ball(ball) {
m_ball = ball;
//return(Ball);
}
function get CourtInfo() {
return(m_courtInfo);
}
function set CourtInfo(courtInfo) {
m_courtInfo = courtInfo;
//return(CourtInfo);
}
function get LogoBitmapList() {
return(m_logoBitmapList);
}
function set LogoBitmapList(list) {
m_logoBitmapList = list;
//return(LogoBitmapList);
}
function get BannerBitmap() {
return(m_bannerBitmap);
}
function set BannerBitmap(bitmap) {
m_bannerBitmap = bitmap;
//return(BannerBitmap);
}
function get MatchLoop() {
return(m_matchLoop);
}
function set MatchLoop(matchLoop) {
m_matchLoop = matchLoop;
//return(MatchLoop);
}
}
Symbol 1570 MovieClip [__Packages.app.enemy.Court] Frame 0
class app.enemy.Court extends app.enemy.Enemy
{
var m_courseInfo, m_mcCourtBase, m_mcCourtRotateBase, m_mcCourtPosition, m_mcGround, m_mcWall, m_mcWallLogo, m_mcSortList, m_ball, m_context, m_player, m_com, m_mcPartsList, m_depthList, m_count, m_lastSkew, m_isUpdate, m_wl;
function Court (context, parentMC) {
super(context);
var _local4;
var _local11;
var _local10;
var _local3;
m_courseInfo = app.sys.SysInfo.__get__MatchInfo().CourtInfo;
m_mcCourtBase = util.MovieClipFactory.createOnMc(parentMC, "NoMaskMC", "MASK");
m_mcCourtBase._visible = true;
m_mcCourtRotateBase = util.MovieClipFactory.createEmptyOnMc(m_mcCourtBase.dummy);
m_mcCourtRotateBase._x = DRAW_WIDTH / 2;
m_mcCourtRotateBase._y = DRAW_HEIGHT / 2;
m_mcCourtRotateBase._visible = true;
m_mcCourtPosition = util.MovieClipFactory.createEmptyOnMc(m_mcCourtRotateBase);
m_mcCourtPosition._x = (-DRAW_WIDTH) / 2;
m_mcCourtPosition._y = (-DRAW_HEIGHT) / 2;
m_mcCourtPosition._visible = true;
var _local7;
_local7 = app.sys.SysInfo.getStageNum();
m_mcGround = util.MovieClipFactory.createOnMc(m_mcCourtPosition, "GroundMC", "Ground");
m_mcGround._visible = true;
m_mcGround.gotoAndStop(_local7);
m_mcWall = util.MovieClipFactory.createOnMc(m_mcCourtPosition, "WallMC", "Wall");
m_mcWall._visible = true;
m_mcWall.gotoAndStop(_local7);
m_mcWall.stop();
m_mcWallLogo = util.MovieClipFactory.createEmptyOnMc(m_mcWall.Logo);
m_mcWallLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_WALL], 2);
m_mcWallLogo._x = (-m_mcWallLogo._width) / 2;
m_mcWallLogo._visible = true;
var _local5;
var _local6;
m_mcSortList = [];
_local4 = 0;
while (_local4 < 7) {
_local3 = util.MovieClipFactory.createEmptyOnMc(m_mcCourtPosition);
_local3._visible = true;
m_mcSortList.push(_local3);
_local4++;
}
m_ball = new app.enemy.Ball(m_context, m_mcSortList, app.sys.SysInfo.__get__MatchInfo().__get__CourtInfo().CourtParam);
m_player = new app.enemy.Player(m_context, m_mcSortList[5]);
m_com = new app.enemy.Computer(m_context, m_mcSortList[1], _local7, app.sys.SysInfo.__get__MatchInfo().__get__CourtInfo().CpuParam);
m_mcPartsList = [];
_local4 = 0;
while (_local4 < COURTPARTS.length) {
_local5 = COURTPARTS[_local4];
_local6 = (calcDisplayScale(_local5[3]) * _local5[5]) * 100;
if (app.sys.SysInfo.__get__MatchInfo().__get__CourtInfo().Item[_local4]) {
_local3 = util.MovieClipFactory.createOnMc(m_mcSortList[_local5[1]], _local5[0], "PARTS");
_local3._visible = true;
_local3._xscale = _local6 * _local5[4];
_local3._yscale = _local6;
_local3.cacheAsBitmap = true;
_local3.stop();
} else {
_local3 = undefined;
}
m_mcPartsList.push(_local3);
_local4++;
}
m_mcGround._xscale = 100;
m_mcGround._yscale = 100;
m_mcGround._x = (-(m_mcGround._width - app.sys.Screen.WIDTH)) / 2;
m_mcGround._y = COURT_POS_Y;
m_mcGround._visible = true;
m_mcWall._xscale = 100;
m_mcWall._yscale = 100;
m_mcWall._x = (-(m_mcWall._width - app.sys.Screen.WIDTH)) / 2;
m_mcWall._y = COURT_POS_Y;
m_mcWall._visible = true;
m_depthList = [app.sys.Param.COURT_HEIGHT, app.sys.Param.COURT_HEIGHT / 2, 0];
m_count = 0;
m_lastSkew = 0;
m_isUpdate = true;
app.sys.SysInfo.__get__MatchInfo().__set__Court(this);
app.sys.SysInfo.__get__MatchInfo().__set__Ball(m_ball);
app.sys.SysInfo.__get__MatchInfo().__set__Player(m_player);
app.sys.SysInfo.__get__MatchInfo().__set__Computer(m_com);
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
m_isUpdate = true;
}
function move() {
if (app.sys.SysInfo.isMatchPause()) {
return(true);
}
m_count = m_count + app.sys.SysInfo.getRate();
return(true);
}
function ctrl() {
return(true);
}
function disp() {
var _local6;
_local6 = ((-m_player.getRange()) / (app.sys.Param.COURT_WIDTH / 2)) * COURT_SKEW;
if ((!m_isUpdate) && (_local6 == m_lastSkew)) {
return(undefined);
}
m_lastSkew = _local6;
m_isUpdate = false;
var _local7;
_local7 = m_mcGround.transform.matrix.clone();
_local7.c = _local6;
m_mcGround.transform.matrix = _local7;
var _local2;
var _local3;
var _local5;
var _local4;
_local2 = 0;
while (_local2 < m_mcPartsList.length) {
_local3 = MovieClip(m_mcPartsList[_local2]);
if (_local3 != undefined) {
_local5 = COURTPARTS[_local2];
_local4 = calcDisplayPosition(_local5[2], _local5[3]);
_local3._x = _local4.x;
_local3._y = _local4.y;
}
_local2++;
}
}
function destroy() {
var _local2;
while (m_mcPartsList.length > 0) {
_local2 = MovieClip(m_mcPartsList.pop());
_local2.removeMovieClip();
}
m_mcGround.removeMovieClip();
m_mcWallLogo.removeMovieClip();
m_mcWall.removeMovieClip();
m_mcCourtPosition.removeMovieClip();
m_mcCourtRotateBase.removeMovieClip();
m_mcCourtBase.removeMovieClip();
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
}
function calcDisplayPosition(x, y) {
var _local4;
_local4 = ((-m_player.getRange()) / (app.sys.Param.COURT_WIDTH / 2)) * COURT_SKEW;
x = (XSCALE / (y + COURT_START_Z)) * x;
y = (YSCALE / (y + COURT_START_Z)) - YBASE;
x = x + (_local4 * y);
y = y + COURT_POS_Y;
return(new flash.geom.Point(x + (app.sys.Screen.WIDTH / 2), y));
}
function calcDisplayScale(y) {
return((XSCALE / (y + COURT_START_Z)) / SCALE_BASE);
}
function calcCourtToMousePositionY(y, height) {
var _local1;
_local1 = (XSCALE / (y + COURT_START_Z)) * height;
return((((YSCALE / (y + COURT_START_Z)) - YBASE) + COURT_POS_Y) - _local1);
}
function calcDisplayHeight(y, height) {
return((XSCALE / (y + COURT_START_Z)) * height);
}
function calcMouseToCourtPosition(mouseX, mouseY, height) {
var _local5;
var _local1;
var _local4;
var _local3;
var _local2;
_local1 = ((YSCALE - (XSCALE * height)) / ((mouseY + YBASE) - COURT_POS_Y)) - COURT_START_Z;
_local4 = (XSCALE / (_local1 + COURT_START_Z)) * height;
_local3 = COURT_SKEW / (app.sys.Param.COURT_WIDTH / 2);
_local2 = (_local1 + COURT_START_Z) / XSCALE;
_local5 = ((mouseX - (app.sys.Screen.WIDTH / 2)) * _local2) / (1 - ((_local3 * ((mouseY + _local4) - COURT_POS_Y)) * _local2));
return(new flash.geom.Point(_local5, _local1));
}
function calcMouseToCourtPositionNone(mouseX, mouseY) {
var _local5;
var _local2;
var _local4;
var _local3;
_local2 = (YSCALE / ((mouseY + YBASE) - COURT_POS_Y)) - COURT_START_Z;
_local4 = COURT_SKEW / (app.sys.Param.COURT_WIDTH / 2);
_local3 = (_local2 + COURT_START_Z) / XSCALE;
_local5 = ((mouseX + ((m_player.getRange() * _local4) * (mouseY - COURT_POS_Y))) - (app.sys.Screen.WIDTH / 2)) * _local3;
return(new flash.geom.Point(_local5, _local2));
}
function getDepthList() {
m_depthList[0] = app.sys.SysInfo.__get__MatchInfo().__get__Computer().getY();
m_depthList[2] = app.sys.SysInfo.__get__MatchInfo().__get__Player().getY();
return(m_depthList);
}
static var DRAW_WIDTH = 530;
static var DRAW_HEIGHT = 400;
static var COURT_START_Z = 12.41;
static var XSCALE = 1108;
static var YSCALE = 5000;
static var YBASE = 128;
static var COURT_POS_Y = 68;
static var COURT_SKEW = 1;
static var SCALE_BASE = XSCALE / COURT_START_Z;
static var COURTPARTS = [["ChairFrontMC", 0, -6.25, 26.77, 1, 1.15866720386785], ["ChairFrontMC", 0, 6.25, 26.77, 1, 1.15866720386785], ["ChairSideMC", 0, -6.75, 15.635, 1, 1.65551974214343], ["ChairSideMC", 0, 6.75, 15.635, -1, 1.65551974214343], ["ChairSideMC", 0, -6.75, 14.635, 1, 1.65551974214343], ["ChairSideMC", 0, 6.75, 14.635, -1, 1.65551974214343], ["ChairBigMC", 0, -6.9, 11.885, 1, 1.9576954069299], ["ChairBig2MC", 0, -6.9, 11.885, 1, 1.9576954069299], ["ChairSideMC", 0, -6.75, 9.135, 1, 1.65551974214343], ["ChairSideMC", 0, 6.75, 9.135, -1, 1.65551974214343], ["ChairSideMC", 0, -6.75, 8.135, 1, 1.65551974214343], ["ChairSideMC", 0, 6.75, 8.135, -1, 1.65551974214343], ["NetMC", 3, 0, 11.885, 1, 1.9576954069299]];
}
Symbol 1571 MovieClip [__Packages.app.enemy.Human] Frame 0
class app.enemy.Human extends app.enemy.Enemy
{
var m_stY, m_stX, m_stTargetX, m_stTargetY, m_stDir, m_stMotion, m_stAnimeCount, m_mcBase, m_mc, m_count, m_mode, m_wl, m_context, m_serveType, m_boundCount, m_runCount, m_shotPower, m_shotPowerNow, m_isToss, m_isShot, m_shotHitPos, m_shotMaxDir, m_shotMinDir, m_stShotY, m_stShotX, m_reachTime, m_shotType, m_ballX, m_shotMove, m_isSound, m_shotAnimeTime, m_shotShotTime, m_shotEndTime, m_shotAutoTime, m_shotSpeed, m_shotDir, m_shotRad;
function Human (context, parentMC, mcID) {
super(context);
m_stY = 0;
m_stX = 0;
m_stTargetX = 0;
m_stTargetY = 0;
m_stDir = (Math.PI/2);
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_mcBase = util.MovieClipFactory.createEmptyOnMc(parentMC);
m_mcBase._visible = true;
m_mc = util.MovieClipFactory.createOnMc(m_mcBase, mcID, "Human");
m_mc._visible = true;
m_count = 0;
m_mode = MD_NORMAL;
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
}
function move() {
var _local12 = app.sys.SysInfo.getRate();
var _local4 = _local12 / 1000;
var _local2 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
var _local29;
var _local7;
var _local13;
m_count = m_count + _local12;
do {
_local13 = false;
switch (m_mode) {
case MD_SERVE_PRE :
if (!mouseIsDown()) {
updateTargetPosServe();
_local29 = calcTargetDist();
if ((_local29 > 0.01) && (m_count < SERVE_WAIT_START_TIME)) {
if (_local29 < (RUN_SPEED * _local4)) {
m_stX = m_stTargetX;
m_stY = m_stTargetY;
} else {
m_stDir = calcTargetDir();
m_stX = m_stX + ((Math.cos(m_stDir) * RUN_SPEED) * _local4);
m_stY = m_stY + ((Math.sin(m_stDir) * RUN_SPEED) * _local4);
}
if (m_serveType == SERVETYPE_RIGHT) {
if (m_stX > (app.sys.Param.COURT_WIDTH / 2)) {
m_stX = app.sys.Param.COURT_WIDTH / 2;
} else if (m_stX < 0) {
m_stX = 0;
}
} else if (m_stX > 0) {
m_stX = 0;
} else if (m_stX < ((-app.sys.Param.COURT_WIDTH) / 2)) {
m_stX = (-app.sys.Param.COURT_WIDTH) / 2;
}
m_stMotion = MOT_SHOT_SERVE1;
m_stAnimeCount = 0;
m_count = 0;
_local2.clear();
} else {
m_stMotion = MOT_SHOT_SERVE1;
_local2.clear();
if (m_count < SERVE_WAIT_START_TIME) {
m_stAnimeCount = 0;
m_boundCount = 0;
} else if (m_count < (SERVE_WAIT_START_TIME + (ANIME_SERVE1_TIME * SERVE_WAIT_BOUND_COUNT))) {
var _local6;
var _local36;
_local6 = m_count - SERVE_WAIT_START_TIME;
if (((m_boundCount * ANIME_SERVE1_TIME) + 200) < _local6) {
app.sys.SysInfo.__get__SoundManager().playSE("HandBound", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
m_boundCount++;
}
_local6 = (m_count - SERVE_WAIT_START_TIME) % ANIME_SERVE1_TIME;
m_stAnimeCount = _local6;
_local6 = ((_local6 >= (ANIME_SERVE1_TIME / 2)) ? (ANIME_SERVE1_TIME - _local6) : (_local6));
_local36 = SERVE_WAIT_Z - ((_local6 * SERVE_WAIT_Z) / (ANIME_SERVE1_TIME / 2));
_local2.updatePosition(transX(m_stX + 0.25), transY(m_stY + 0), _local36);
} else {
m_count = 0;
m_stAnimeCount = 0;
}
}
} else {
m_mode = MD_SERVE;
m_stMotion = MOT_SHOT_SERVE2;
m_stAnimeCount = 0;
m_runCount = 0;
m_count = 0;
m_shotPower = -1;
m_shotPowerNow = 0;
m_isToss = false;
m_isShot = false;
m_shotHitPos = SERVE_TOSS_X;
m_shotMaxDir = SERVE_DIR_MAX;
m_shotMinDir = SERVE_DIR_MIN;
_local2.clear();
}
break;
case MD_SERVE :
if (m_shotPower == -1) {
if (m_count < SERVE_POWER_MAX_TIME) {
m_shotPowerNow = util.Util.calcTween(0, 1, m_count / SERVE_POWER_MAX_TIME, -100);
} else {
m_shotPowerNow = util.Util.calcTween(1, 0, (m_count - SERVE_POWER_MAX_TIME) / (SERVE_TOSS_WAIT_TIME - SERVE_POWER_MAX_TIME), 100);
}
if (m_count < SERVE_TOSS_WAIT_TIME) {
if (mouseIsUp()) {
m_shotPower = m_shotPowerNow;
mouseClear();
}
} else {
m_shotPower = 0;
mouseClear();
}
}
if (m_count < (SERVE_TOSS_ANIME_TIME - 1)) {
m_stAnimeCount = m_count / 2;
} else if (m_count < SERVE_TOSS_WAIT_TIME) {
m_stAnimeCount = (SERVE_TOSS_ANIME_TIME / 2) - 1;
} else {
m_stAnimeCount = (m_count - SERVE_TOSS_WAIT_TIME) + (SERVE_TOSS_ANIME_TIME / 2);
}
if (!m_isShot) {
updateShotDir();
}
if (!m_isToss) {
if (m_count >= SERVE_TOSS_START_TIME) {
_local2.setPosition(transX(m_stX + SERVE_TOSS_X), transY(m_stY + SERVE_TOSS_Y), SERVE_TOSS_Z);
_local2.setPower(SERVE_TOSS_POWER, transDir(SERVE_TOSS_DIR), SERVE_TOSS_RAD);
_local2.setAutoMode(true);
m_isToss = true;
}
} else if (((m_shotPower >= 0) && (!m_isShot)) && (m_count >= SERVE_TOSS_SHOT_TIME)) {
var _local5;
var _local10;
var _local33;
_local5 = m_shotPower / SERVE_TOSS_WAIT_TIME;
if (_local5 > 1) {
_local5 = 1;
}
if (m_stShotY < (app.sys.Param.COURT_HEIGHT / 2)) {
var _local9;
var _local11;
var _local20;
var _local23;
var _local3;
var _local14;
var _local17;
var _local30;
var _local19;
_local9 = transX(_local2.getPositionX());
_local11 = transY(_local2.getPositionY());
_local7 = Math.atan2(m_stShotY - _local11, m_stShotX - _local9);
_local29 = util.Util.getDist(m_stShotY - _local11, m_stShotX - _local9);
_local20 = ((m_serveType == SERVETYPE_LEFT) ? 0 : ((-app.sys.Param.COURT_WIDTH) / 2));
_local23 = _local20 + (app.sys.Param.COURT_WIDTH / 2);
_local3 = ((app.sys.Param.COURT_HEIGHT / 4) * 3) - 0.1;
_local14 = Math.atan2(_local3 - _local11, _local20 - _local9);
_local17 = Math.atan2(_local3 - _local11, _local23 - _local9);
_local30 = calcShotAccuracy(_local7, _local29);
_local19 = (_local14 - _local17) * _local30;
_local7 = limitShotDir(_local7, _local19, _local17, _local14);
_local7 = _local7 + ((Math.random() * _local19) - (_local19 / 2));
m_stShotY = _local3;
m_stShotX = _local9 + ((_local3 - m_stY) / Math.tan(_local7));
} else {
var _local20 = ((m_serveType == SERVETYPE_LEFT) ? 0 : ((-app.sys.Param.COURT_WIDTH) / 2));
var _local23 = _local20 + (app.sys.Param.COURT_WIDTH / 2);
m_stShotX = util.Util.limitRange(m_stShotX, _local20 - 0.5, _local23 + 0.5);
_local20 = app.sys.Param.COURT_HEIGHT / 2;
_local23 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
m_stShotY = util.Util.limitRange(m_stShotY, _local20, _local23 + 0.5);
}
_local10 = SERVE_SPEED_MIN + (m_shotPower * (SERVE_SPEED_MAX - SERVE_SPEED_MIN));
_local10 = _local10 + util.Util.getRandomHalf(_local10 / 10);
_local7 = transDir(Math.atan2(m_stShotY - transY(_local2.getPositionY()), m_stShotX - transX(_local2.getPositionX())));
_local33 = _local2.getShotRad(transX(m_stShotX), transY(m_stShotY), _local10);
_local2.setPower(_local10, _local7, _local33);
setSpeed(_local10);
app.sys.SysInfo.__get__SoundManager().playSE("Swing", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
playShotSE(_local10);
m_isShot = true;
}
m_stMotion = MOT_SHOT_SERVE2;
if (m_isShot && (m_count >= SERVE_TOSS_END_TIME)) {
m_mode = MD_NORMAL;
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_count = 0;
m_runCount = 0;
mouseClear();
}
break;
case MD_NORMAL :
updateTargetPosNormal();
_local29 = calcTargetDist();
if (_local29 > 0.01) {
if (_local29 < (RUN_SPEED * _local4)) {
m_stX = m_stTargetX;
m_stY = m_stTargetY;
} else {
m_stDir = calcTargetDir();
m_stX = m_stX + ((Math.cos(m_stDir) * RUN_SPEED) * _local4);
m_stY = m_stY + ((Math.sin(m_stDir) * RUN_SPEED) * _local4);
}
if (m_stX > ((app.sys.Param.COURT_WIDTH / 2) + MOVE_LIMIT_X)) {
m_stX = (app.sys.Param.COURT_WIDTH / 2) + MOVE_LIMIT_X;
} else if (m_stX < (((-app.sys.Param.COURT_WIDTH) / 2) - MOVE_LIMIT_X)) {
m_stX = ((-app.sys.Param.COURT_WIDTH) / 2) - MOVE_LIMIT_X;
}
if (m_stY > (app.sys.Param.COURT_HEIGHT / 2)) {
m_stY = app.sys.Param.COURT_HEIGHT / 2;
} else if (m_stY < (-MOVE_LIMIT_Y)) {
m_stY = -MOVE_LIMIT_Y;
}
m_stMotion = MOT_RUN;
} else {
m_stMotion = MOT_STAND;
}
m_stAnimeCount = m_stAnimeCount + _local12;
if (mouseIsDown()) {
_local7 = util.Util.plusRad(getBallDir(_local2.getDir()));
if (_local7 >= Math.PI) {
var _local27;
var _local32;
var _local37;
var _local8;
var _local22;
var _local24;
var _local28;
m_reachTime = getReachTime(m_stY);
_local28 = _local2.getReachHeight(transY(m_stY));
_local27 = _local2.getPosition();
_local32 = transY(_local27.y) - m_stY;
_local8 = (transX(_local27.x) - ((_local32 / Math.sin(_local7)) * Math.cos(_local7))) - m_stX;
_local24 = _local8 - SHOT_RIGHT_POS;
_local22 = _local8 - SHOT_LEFT_POS;
if ((_local28 != NaN) && (_local28 >= 1.5)) {
if (Math.abs(_local8) < AUTO_MOVE_LIMIT) {
m_stTargetX = m_stX + _local8;
m_stTargetY = m_stY;
m_mode = MD_AUTO_MOVE;
} else {
m_stMotion = MOT_SMASH;
m_mode = MD_SHOT_SMASH;
m_stAnimeCount = 0;
m_count = 0;
}
m_shotType = SHOTTYPE_SMASH;
} else if (Math.abs(_local24) >= Math.abs(_local22)) {
if (Math.abs(_local22) < AUTO_MOVE_LIMIT) {
m_stTargetX = m_stX + _local22;
m_stTargetY = m_stY;
m_mode = MD_AUTO_MOVE;
} else {
m_mode = MD_SHOT_LEFT;
}
m_shotType = SHOTTYPE_NORMAL;
} else {
if (Math.abs(_local24) < AUTO_MOVE_LIMIT) {
m_stTargetX = m_stX + _local24;
m_stTargetY = m_stY;
m_mode = MD_AUTO_MOVE;
} else {
m_mode = MD_SHOT_LEFT;
}
m_shotType = SHOTTYPE_NORMAL;
}
m_ballX = _local8 + m_stX;
m_reachTime = -1;
} else {
m_mode = MD_SHOT_RIGHT;
}
m_stAnimeCount = 0;
m_count = 0;
m_shotPower = -1;
m_isShot = false;
}
break;
case MD_AUTO_MOVE :
_local29 = calcTargetDist();
if (_local29 > 0.01) {
m_stDir = calcTargetDir();
if (_local29 < (RUN_SPEED * _local4)) {
m_stX = m_stTargetX;
m_stY = m_stTargetY;
} else {
m_stX = m_stX + ((Math.cos(m_stDir) * RUN_SPEED) * _local4);
m_stY = m_stY + ((Math.sin(m_stDir) * RUN_SPEED) * _local4);
}
m_stMotion = MOT_RUN;
m_stAnimeCount = m_stAnimeCount + _local12;
}
if (m_reachTime == -1) {
m_reachTime = getReachTime(m_stY);
} else {
m_reachTime = m_reachTime - _local12;
}
if ((m_reachTime != -1) && (m_reachTime <= (SHOT_JUMP_SHOT_TIME + _local12))) {
var _local15;
_local29 = Math.abs(m_stX - m_ballX) - SHOT_JUMP_POS;
_local15 = (_local29 / SHOT_JUMP_SHOT_TIME) * 1000;
if (_local15 > JUMP_SPEED) {
_local15 = JUMP_SPEED;
}
if ((_local29 > (((SHOT_JUMP_SHOT_TIME * JUMP_SPEED) / 1000) - SHOT_JUMP_NEAR_LIMIT)) && (_local29 < (((SHOT_JUMP_SHOT_TIME * JUMP_SPEED) / 1000) + SHOT_JUMP_FAR_LIMIT))) {
if ((m_ballX - m_stX) > 0) {
m_mode = MD_JUMP_RIGHT;
m_stMotion = MOT_JUMP_RIGHT;
m_shotMove = _local15;
} else {
m_mode = MD_JUMP_LEFT;
m_stMotion = MOT_JUMP_LEFT;
m_shotMove = -_local15;
}
m_stAnimeCount = 0;
m_count = 0;
m_shotPower = -1;
m_isShot = false;
m_isSound = false;
}
}
_local29 = calcTargetDist();
if (_local29 <= 0.01) {
if (m_shotType == SHOTTYPE_SMASH) {
m_mode = MD_SHOT_SMASH;
} else if ((m_stX - m_ballX) > 0) {
m_mode = MD_SHOT_LEFT;
} else {
m_mode = MD_SHOT_RIGHT;
}
updateShotDir();
}
break;
case MD_SHOT_RIGHT :
m_shotAnimeTime = SHOT_RIGHT_ANIME_TIME;
m_shotShotTime = SHOT_RIGHT_SHOT_TIME;
m_shotEndTime = SHOT_RIGHT_END_TIME;
m_shotHitPos = SHOT_RIGHT_POS;
m_stMotion = MOT_SHOT_RIGHT;
m_shotMaxDir = SHOT_NORMAL_DIR_MAX;
m_shotMinDir = SHOT_NORMAL_DIR_MIN;
m_shotType = SHOTTYPE_NORMAL;
m_shotPower = -1;
m_shotAutoTime = 0;
m_stAnimeCount = 0;
m_count = 0;
m_mode = MD_SHOT_ACT;
_local13 = true;
break;
case MD_SHOT_LEFT :
m_shotAnimeTime = SHOT_LEFT_ANIME_TIME;
m_shotShotTime = SHOT_LEFT_SHOT_TIME;
m_shotEndTime = SHOT_LEFT_END_TIME;
m_shotHitPos = SHOT_LEFT_POS;
m_stMotion = MOT_SHOT_LEFT;
m_shotMaxDir = SHOT_NORMAL_DIR_MAX;
m_shotMinDir = SHOT_NORMAL_DIR_MIN;
m_shotType = SHOTTYPE_NORMAL;
m_shotPower = -1;
m_shotAutoTime = 0;
m_stAnimeCount = 0;
m_count = 0;
m_mode = MD_SHOT_ACT;
_local13 = true;
break;
case MD_SHOT_SMASH :
m_shotAnimeTime = SHOT_SMASH_ANIME_TIME;
m_shotShotTime = SHOT_SMASH_SHOT_TIME;
m_shotEndTime = SHOT_SMASH_END_TIME;
m_shotHitPos = SHOT_SMASH_POS;
m_stMotion = MOT_SMASH;
m_shotMaxDir = SHOT_SMASH_DIR_MAX;
m_shotMinDir = SHOT_SMASH_DIR_MIN;
m_shotType = SHOTTYPE_SMASH;
m_shotPower = -1;
m_shotAutoTime = 0;
m_stAnimeCount = 0;
m_count = 0;
m_mode = MD_SHOT_ACT;
_local13 = true;
break;
case MD_SHOT_ACT :
if (m_reachTime == -1) {
m_reachTime = getReachTime(m_stY);
} else {
m_reachTime = m_reachTime - _local12;
}
if ((m_shotPower == -1) && (mouseIsUp() || ((m_reachTime != -1) && (m_reachTime <= ((m_shotShotTime - m_shotAnimeTime) + app.sys.SysInfo.getRate()))))) {
m_shotPower = m_count;
m_shotAutoTime = app.sys.SysInfo.getRate();
if (m_reachTime != -1) {
var _local16;
_local16 = m_reachTime - (m_shotShotTime - m_shotAnimeTime);
if (m_count < m_shotAnimeTime) {
if ((_local16 - (m_shotAnimeTime - m_count)) < 0) {
m_count = m_shotAnimeTime;
m_shotPower = 0;
}
}
if ((_local16 > 0) && (_local16 < AUTO_SHOT_TIME_LIMIT)) {
m_shotAutoTime = m_shotAutoTime + _local16;
}
}
}
if (m_shotAutoTime > 0) {
m_shotAutoTime = m_shotAutoTime - app.sys.SysInfo.getRate();
if (m_shotAutoTime <= 0) {
m_shotAutoTime = 0;
if (m_count >= m_shotAnimeTime) {
m_count = m_shotAnimeTime;
}
}
}
if (app.sys.SysInfo.roundRate(m_count) < app.sys.SysInfo.roundRate(m_shotAnimeTime)) {
m_stAnimeCount = m_count;
} else if ((m_shotPower == -1) || (m_shotAutoTime > 0)) {
m_stAnimeCount = m_shotAnimeTime - 1;
} else {
m_stAnimeCount = m_count;
}
if (!m_isShot) {
updateShotDir();
}
if ((((m_shotPower >= 0) && (m_shotAutoTime == 0)) && (!m_isShot)) && (app.sys.SysInfo.roundRate(m_count - m_shotShotTime) >= 0)) {
var _local5 = m_shotPower / SHOT_NORMAL_POWER_TIME;
if (_local5 > 1) {
_local5 = 1;
}
if (m_stShotY < ((app.sys.Param.COURT_HEIGHT / 8) * 5)) {
var _local26;
var _local34;
var _local9 = transX(_local2.getPositionX());
var _local11 = transY(_local2.getPositionY());
_local7 = Math.atan2(m_stShotY - _local11, m_stShotX - _local9);
_local29 = util.Util.getDist(m_stShotY - _local11, m_stShotX - _local9);
_local26 = calcShotMinDist();
_local34 = SHOT_DIR_MAX_DIST2;
if (m_shotType == SHOTTYPE_NORMAL) {
if (m_shotPower < SHOT_NORMAL_LOB_TIME) {
var _local3 = (app.sys.Param.COURT_HEIGHT / 8) * 7;
} else if (m_shotPower < SHOT_NORMAL_DROP_TIME) {
var _local3 = (app.sys.Param.COURT_HEIGHT / 8) * 5;
} else {
var _local3 = (app.sys.Param.COURT_HEIGHT / 16) * 13;
}
} else {
var _local3 = (app.sys.Param.COURT_HEIGHT / 8) * 6;
}
if (((_local7 >= Math.PI) || (_local7 <= 0)) || (_local29 < _local26)) {
_local7 = (Math.PI/2);
}
var _local3 = _local3 + (((Math.random() * app.sys.Param.COURT_HEIGHT) / 16) - (app.sys.Param.COURT_HEIGHT / 32));
var _local14 = m_shotMaxDir;
var _local17 = m_shotMinDir;
var _local8 = _local9 + ((_local3 - _local11) / Math.tan(_local17));
if (_local8 > ((app.sys.Param.COURT_WIDTH / 2) - 0.1)) {
_local8 = (app.sys.Param.COURT_WIDTH / 2) - 0.1;
_local17 = Math.atan2(_local3 - _local11, _local8 - _local9);
}
_local8 = _local9 + ((_local3 - _local11) / Math.tan(_local14));
if (_local8 < (((-app.sys.Param.COURT_WIDTH) / 2) + 0.1)) {
_local8 = ((-app.sys.Param.COURT_WIDTH) / 2) + 0.1;
_local14 = Math.atan2(_local3 - _local11, _local8 - _local9);
}
var _local30 = calcShotAccuracy(_local7, _local29, _local26, _local34);
var _local19 = _local14 - _local17;
_local19 = _local19 * _local30;
_local7 = limitShotDir(_local7, _local19, _local17, _local14);
_local7 = _local7 + ((Math.random() * _local19) - (_local19 / 2));
m_stShotX = _local9 + ((_local3 - m_stY) / Math.tan(_local7));
m_stShotY = _local3;
} else {
var _local35;
var _local31;
var _local18;
var _local21;
_local35 = (-app.sys.Param.COURT_WIDTH) / 2;
_local31 = app.sys.Param.COURT_WIDTH / 2;
if (m_shotType == SHOTTYPE_NORMAL) {
if (m_shotPower < SHOT_NORMAL_LOB_TIME) {
_local18 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
_local21 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
} else if (m_shotPower < SHOT_NORMAL_DROP_TIME) {
_local18 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local21 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
} else {
_local18 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local21 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
}
} else {
_local18 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local21 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
}
m_stShotX = util.Util.limitRange(m_stShotX, _local35 - 0.5, _local31 + 0.5);
m_stShotY = util.Util.limitRange(m_stShotY, _local18, _local21 + 0.5);
}
if (m_shotType == SHOTTYPE_NORMAL) {
checkHit(m_stX + m_shotHitPos, m_stY, 1, RACKET_WIDTH, 0.1, 2);
if (m_shotPower < SHOT_NORMAL_LOB_TIME) {
m_shotSpeed = _local2.getLobBallSpeed(transX(m_stShotX), transY(m_stShotY));
} else if (m_shotPower < SHOT_NORMAL_DROP_TIME) {
m_shotSpeed = _local2.getDropBallSpeed(transX(m_stShotX), transY(m_stShotY));
} else {
_local5 = (m_shotPower - SHOT_NORMAL_DROP_TIME) / (SHOT_NORMAL_POWER_TIME - SHOT_NORMAL_DROP_TIME);
_local5 = util.Util.limitRange(_local5, 0, 1);
m_shotSpeed = SHOT_NORMAL_SPEED_MIN + (_local5 * (SHOT_NORMAL_SPEED_MAX - SHOT_NORMAL_SPEED_MIN));
}
} else {
_local5 = util.Util.limitRange(m_shotPower / SHOT_SMASH_POWER_TIME, 0, 1);
checkHit(m_stX + m_shotHitPos, m_stY, 2, 1, 0.1, 2);
m_shotSpeed = SHOT_SMASH_SPEED_MIN + (_local5 * (SHOT_SMASH_SPEED_MAX - SHOT_SMASH_SPEED_MIN));
}
app.sys.SysInfo.__get__SoundManager().playSE("Swing", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
m_shotDir = transDir(Math.atan2(m_stShotY - transY(_local2.getPositionY()), m_stShotX - transX(_local2.getPositionX())));
m_shotRad = _local2.getShotRad(transX(m_stShotX), transY(m_stShotY), m_shotSpeed);
var _local25;
_local25 = _local2.adjustShotRad(app.sys.Param.COURT_HEIGHT / 2, m_shotSpeed, m_shotRad, m_shotDir, util.Util.getDist(m_stShotX - transX(_local2.getPositionX()), m_stShotY - transY(_local2.getPositionY())));
if (_local25 != undefined) {
m_shotSpeed = _local25.speed;
m_shotRad = _local25.rad;
}
m_isShot = true;
}
if (m_isShot && (app.sys.SysInfo.roundRate(m_count - m_shotEndTime) >= 0)) {
m_mode = MD_NORMAL;
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_runCount = 0;
m_count = 0;
mouseClear();
}
break;
case MD_JUMP_LEFT :
m_shotAnimeTime = SHOT_SMASH_ANIME_TIME;
m_shotShotTime = SHOT_JUMP_SHOT_TIME;
m_shotEndTime = SHOT_JUMP_END_TIME;
m_shotHitPos = -SHOT_JUMP_POS;
m_stMotion = MOT_JUMP_LEFT;
m_shotType = SHOTTYPE_NORMAL;
m_shotPower = -1;
m_shotAutoTime = 0;
m_stAnimeCount = 0;
m_count = 0;
m_mode = MD_JUMP_ACT;
_local13 = true;
break;
case MD_JUMP_RIGHT :
m_shotAnimeTime = SHOT_SMASH_ANIME_TIME;
m_shotShotTime = SHOT_JUMP_SHOT_TIME;
m_shotEndTime = SHOT_JUMP_END_TIME;
m_shotHitPos = SHOT_JUMP_POS;
m_stMotion = MOT_JUMP_RIGHT;
m_shotType = SHOTTYPE_NORMAL;
m_shotPower = -1;
m_shotAutoTime = 0;
m_stAnimeCount = 0;
m_count = 0;
m_mode = MD_JUMP_ACT;
_local13 = true;
break;
case MD_JUMP_ACT :
if (m_count < m_shotShotTime) {
m_stX = m_stX + (m_shotMove * _local4);
}
m_reachTime = m_reachTime - _local12;
m_stAnimeCount = m_count;
if ((!m_isShot) && (app.sys.SysInfo.roundRate(m_count - m_shotShotTime) >= 0)) {
checkHit(m_stX + m_shotHitPos, m_stY, 0.75, 1, 0.1, 1.5);
m_shotSpeed = SHOT_JUMP_SPEED + util.Util.getRandomHalf(SHOT_JUMP_SPEED_RANDOM);
m_shotDir = SHOT_JUMP_DIR + util.Util.getRandomHalf(SHOT_JUMP_DIR_RANDOM);
m_shotRad = SHOT_JUMP_RAD + util.Util.getRandomHalf(SHOT_JUMP_RAD_RANDOM);
m_isShot = true;
}
if ((!m_isSound) && (m_count >= SHOT_JUMP_SOUND_TIME)) {
app.sys.SysInfo.__get__SoundManager().playSE("Jump", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
m_isSound = true;
}
if (m_isShot && (m_count >= m_shotEndTime)) {
m_mode = MD_NORMAL;
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_runCount = 0;
m_count = 0;
mouseClear();
}
break;
case MD_WIN :
m_stMotion = MOT_WIN;
m_stAnimeCount = 0;
m_mode = MD_WAIT;
break;
case MD_LOSE :
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_mode = MD_WAIT;
break;
case MD_NONE :
m_stMotion = MOT_STAND;
m_stAnimeCount = 0;
m_mode = MD_WAIT;
break;
case MD_WAIT :
m_stAnimeCount = m_stAnimeCount + _local12;
}
} while (_local13);
if (m_stMotion == MOT_RUN) {
if (((m_runCount * ANIME_RUN_TIME) / 2) < m_stAnimeCount) {
if ((m_runCount % 2) == 0) {
app.sys.SysInfo.__get__SoundManager().playSE("RunLeft", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
} else {
app.sys.SysInfo.__get__SoundManager().playSE("RunRight", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
}
m_runCount++;
}
}
return(true);
}
function hit() {
var _local2 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
_local2.setPower(m_shotSpeed, m_shotDir, m_shotRad);
playShotSE(m_shotSpeed);
setSpeed(m_shotSpeed);
setSmash(m_shotType == SHOTTYPE_SMASH);
}
function ctrl() {
return(true);
}
function disp() {
var _local3;
var _local4;
var _local5;
var _local2;
var _local6;
_local3 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayPosition(transX(m_stX), transY(m_stY));
_local4 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayScale(transY(m_stY));
_local5 = Math.floor((((m_stDir + 0.392699081698724) + (Math.PI*2)) % (Math.PI*2)) / (Math.PI/4));
if (m_stMotion == MOT_RUN) {
switch (_local5) {
case 0 :
_local2 = MOT_RUN_RIGHT;
break;
case 1 :
_local2 = MOT_RUN_RIGHTFOWARD;
break;
case 2 :
_local2 = MOT_RUN_FOWARD;
break;
case 3 :
_local2 = MOT_RUN_LEFTFOWARD;
break;
case 4 :
_local2 = MOT_RUN_LEFT;
break;
case 5 :
_local2 = MOT_RUN_LEFTBACK;
break;
case 6 :
if (transX(m_stX) < transX(app.sys.SysInfo.__get__MatchInfo().__get__Ball().getPositionX())) {
_local2 = MOT_RUN_BACKRIGHT;
} else {
_local2 = MOT_RUN_BACKLEFT;
}
break;
case 7 :
_local2 = MOT_RUN_RIGHTBACK;
}
_local2 = ((_local2 * ANIME_RUN_MAX) + Math.floor(((m_stAnimeCount % ANIME_RUN_TIME) / ANIME_RUN_TIME) * ANIME_RUN_MAX)) + 1;
} else if (m_stMotion == MOT_STAND) {
_local2 = Math.floor(((m_stAnimeCount % ANIME_STAND_TIME) / ANIME_STAND_TIME) * ANIME_STAND_MAX) + 1;
} else if (m_stMotion == MOT_SHOT_SERVE1) {
_local2 = Math.floor(((m_stAnimeCount % ANIME_SERVE1_TIME) / ANIME_SERVE1_TIME) * ANIME_SERVE1_MAX) + 1;
} else if (m_stMotion == MOT_SHOT_SERVE2) {
_local2 = Math.floor((m_stAnimeCount / ANIME_SERVE2_TIME) * ANIME_SERVE2_MAX) + 1;
if (_local2 > ANIME_SERVE2_MAX) {
_local2 = ANIME_SERVE2_MAX;
}
} else if (m_stMotion == MOT_SHOT_RIGHT) {
_local2 = Math.floor((m_stAnimeCount / ANIME_SHOT_RIGHT_TIME) * ANIME_SHOT_RIGHT_MAX) + 1;
if (_local2 > ANIME_SHOT_RIGHT_MAX) {
_local2 = ANIME_SHOT_RIGHT_MAX;
}
} else if (m_stMotion == MOT_SHOT_LEFT) {
_local2 = Math.floor((m_stAnimeCount / ANIME_SHOT_LEFT_TIME) * ANIME_SHOT_LEFT_MAX) + 1;
if (_local2 > ANIME_SHOT_LEFT_MAX) {
_local2 = ANIME_SHOT_LEFT_MAX;
}
} else if (m_stMotion == MOT_SMASH) {
_local2 = Math.floor((m_stAnimeCount / ANIME_SMASH_TIME) * ANIME_SMASH_MAX) + 1;
if (_local2 > ANIME_SMASH_MAX) {
_local2 = ANIME_SMASH_MAX;
}
} else if (m_stMotion == MOT_JUMP_LEFT) {
_local2 = Math.floor((m_stAnimeCount / ANIME_JUMP_LEFT_TIME) * ANIME_JUMP_LEFT_MAX) + 1;
if (_local2 > ANIME_JUMP_LEFT_MAX) {
_local2 = ANIME_JUMP_LEFT_MAX;
}
} else if (m_stMotion == MOT_JUMP_RIGHT) {
_local2 = Math.floor((m_stAnimeCount / ANIME_JUMP_RIGHT_TIME) * ANIME_JUMP_RIGHT_MAX) + 1;
if (_local2 > ANIME_JUMP_RIGHT_MAX) {
_local2 = ANIME_JUMP_RIGHT_MAX;
}
} else if (m_stMotion == MOT_WIN) {
_local2 = Math.floor((m_stAnimeCount / ANIME_WIN_TIME) * ANIME_WIN_MAX) + 1;
if (_local2 > ANIME_WIN_MAX) {
_local2 = ANIME_WIN_MAX;
}
}
m_mc.gotoAndStop(m_stMotion);
m_mc.Anime.gotoAndStop(_local2);
m_mc._x = _local3.x;
m_mc._y = _local3.y;
m_mc._xscale = (m_mc._yscale = (_local4 * 100) * getBaseScale());
}
function destroy() {
m_mc.removeMovieClip();
m_mcBase.removeMovieClip();
app.sys.SysInfo.__get__WorkList().cut(m_wl);
}
function calcTargetDist() {
return(util.Util.getDist(m_stTargetX - m_stX, m_stTargetY - m_stY));
}
function calcTargetDir() {
return(Math.atan2(m_stTargetY - m_stY, m_stTargetX - m_stX));
}
function calcShotMinDist() {
var _local2;
var _local3;
_local2 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayPosition(m_stX, m_stY);
_local2.y = _local2.y - app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayHeight(m_stY, CONTROLL_HEIGHT);
_local3 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcMouseToCourtPositionNone(_local2.x, _local2.y);
return(_local3.y - m_stY);
}
function calcShotAccuracy(dir, dist, minDist, maxDist) {
var _local1;
if ((dir <= 0) && (dir >= Math.PI)) {
_local1 = 1;
} else if (dist < minDist) {
_local1 = 1;
} else {
_local1 = 1 - ((dist - minDist) / (maxDist - minDist));
if (_local1 <= 0.1) {
_local1 = 0.1;
}
}
return(_local1);
}
function limitShotDir(dir, range, minDir, maxDir) {
if ((dir + (range / 2)) > maxDir) {
dir = maxDir - (range / 2);
} else if ((dir - (range / 2)) < minDir) {
dir = minDir + (range / 2);
}
return(dir);
}
function playShotSE(speed) {
if (speed >= 33.3333333333333) {
app.sys.SysInfo.__get__SoundManager().playSE("ShotPowerful", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
} else if (speed >= 22.2222222222222) {
app.sys.SysInfo.__get__SoundManager().playSE("ShotNormal", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
} else {
app.sys.SysInfo.__get__SoundManager().playSE("ShotWeak", sys.SoundManager.PRIO_NORMAL, app.util.AppUtil.getVolume(transY(m_stY)));
}
}
function getRange() {
return(m_stX);
}
function getX() {
return(m_stX);
}
function getY() {
return(m_stY);
}
function setWinAction() {
m_mode = MD_WIN;
mouseClear();
}
function setLoseAction() {
m_mode = MD_LOSE;
mouseClear();
}
function setNoneAction() {
m_mode = MD_NONE;
mouseClear();
}
function startServe(isServe, serveCount) {
var _local2;
if (isServe) {
_local2 = app.sys.SysInfo.__get__MatchInfo().Ball;
m_mode = MD_SERVE_PRE;
_local2.clear();
_local2.setAutoMode(false);
} else {
m_mode = MD_NORMAL;
}
m_serveType = (((serveCount % 2) == 0) ? (SERVETYPE_RIGHT) : (SERVETYPE_LEFT));
m_stX = ((app.sys.Param.COURT_WIDTH / 2) / 2) * m_serveType;
m_stY = -app.sys.Param.SERVE_Y;
m_stTargetX = m_stX;
m_stTargetY = m_stY;
m_count = 0;
mouseClear();
}
function setSpeed(speed) {
}
function setSmash(isSmash) {
}
function transX(x) {
return(x);
}
function transY(y) {
return(y);
}
function transDir(dir) {
return(dir);
}
function getBaseScale() {
return(1);
}
function getBallDir(dir) {
return(transDir(dir));
}
function getReachTime(y) {
return(-1);
}
function checkHit(x, y, z, xs, ys, zs) {
}
function updateTargetPosServe() {
}
function updateTargetPosNormal() {
}
function updateShotDir() {
}
function mouseIsDown() {
return(false);
}
function mouseIsUp() {
return(false);
}
function mouseClear() {
}
static var RUN_SPEED = 6;
static var JUMP_SPEED = 7;
static var MOT_RUN = 1;
static var MOT_JUMP_LEFT = 2;
static var MOT_JUMP_RIGHT = 3;
static var MOT_SHOT_LEFT = 4;
static var MOT_SHOT_RIGHT = 5;
static var MOT_SHOT_SERVE1 = 6;
static var MOT_SHOT_SERVE2 = 7;
static var MOT_SMASH = 8;
static var MOT_STAND = 9;
static var MOT_WIN = 10;
static var MOT_RUN_LEFT = 0;
static var MOT_RUN_LEFTFOWARD = 1;
static var MOT_RUN_FOWARD = 2;
static var MOT_RUN_RIGHTFOWARD = 3;
static var MOT_RUN_RIGHT = 4;
static var MOT_RUN_RIGHTBACK = 5;
static var MOT_RUN_BACKRIGHT = 6;
static var MOT_RUN_BACKLEFT = 7;
static var MOT_RUN_LEFTBACK = 8;
static var ANIME_RUN_MAX = 12;
static var ANIME_RUN_TIME = 500;
static var ANIME_STAND_MAX = 24;
static var ANIME_STAND_TIME = 1000;
static var ANIME_SERVE1_MAX = 6;
static var ANIME_SERVE1_TIME = 500;
static var ANIME_SERVE2_MAX = 12;
static var ANIME_SERVE2_TIME = 500;
static var ANIME_SHOT_RIGHT_MAX = 12;
static var ANIME_SHOT_RIGHT_TIME = 500;
static var ANIME_SHOT_LEFT_MAX = 12;
static var ANIME_SHOT_LEFT_TIME = 500;
static var ANIME_JUMP_LEFT_MAX = 12;
static var ANIME_JUMP_LEFT_TIME = 500;
static var ANIME_JUMP_RIGHT_MAX = 12;
static var ANIME_JUMP_RIGHT_TIME = 500;
static var ANIME_SMASH_MAX = 12;
static var ANIME_SMASH_TIME = 500;
static var ANIME_WIN_MAX = 11;
static var ANIME_WIN_TIME = 458.333333333333;
static var SERVE_WAIT_Z = 0.8;
static var SERVE_WAIT_START_TIME = 750;
static var SERVE_WAIT_BOUND_COUNT = 2;
static var SERVE_TOSS_START_TIME = 333.333333333333;
static var SERVE_TOSS_ANIME_TIME = 416.666666666667;
static var SERVE_TOSS_WAIT_TIME = 750;
static var SERVE_TOSS_SHOT_TIME = 916.666666666667;
static var SERVE_TOSS_END_TIME = 1041.66666666667;
static var SERVE_TOSS_X = 0.3;
static var SERVE_TOSS_Y = 0;
static var SERVE_TOSS_Z = 1.5;
static var SERVE_TOSS_POWER = 4.2;
static var SERVE_TOSS_DIR = 0;
static var SERVE_TOSS_RAD = (Math.PI/2);
static var SERVE_POWER_MAX_TIME = 500;
static var SERVE_SPEED_MIN = 22.2222222222222;
static var SERVE_SPEED_MAX = 38.8888888888889;
static var SERVE_DIR_MIN = 1.71042266695444;
static var SERVE_DIR_MAX = 1.78023583703422;
static var SERVE_RAD_MIN = 0;
static var SERVE_RAD_MAX = -0.0261799387799149;
static var STROKE_POWER = 10;
static var SHOT_RIGHT_ANIME_TIME = 166.666666666667;
static var SHOT_RIGHT_SHOT_TIME = 291.666666666667;
static var SHOT_RIGHT_END_TIME = 500;
static var SHOT_RIGHT_POS = 0.75;
static var SHOT_LEFT_ANIME_TIME = 125;
static var SHOT_LEFT_SHOT_TIME = 208.333333333333;
static var SHOT_LEFT_END_TIME = 500;
static var SHOT_LEFT_POS = -0.5;
static var SHOT_NORMAL_POWER_TIME = 666.666666666667;
static var SHOT_NORMAL_LOB_TIME = 83.3333333333333;
static var SHOT_NORMAL_DROP_TIME = 166.666666666667;
static var SHOT_NORMAL_SPEED_MIN = 22.2222222222222;
static var SHOT_NORMAL_SPEED_MAX = 33.3333333333333;
static var SHOT_NORMAL_DIR_MIN = 1.30899693899575;
static var SHOT_NORMAL_DIR_MAX = 1.83259571459405;
static var SHOT_SMASH_ANIME_TIME = 208.333333333333;
static var SHOT_SMASH_SHOT_TIME = 375;
static var SHOT_SMASH_END_TIME = 500;
static var SHOT_SMASH_POS = 0;
static var SHOT_SMASH_POWER_TIME = 1000;
static var SHOT_SMASH_SPEED_MIN = 27.7777777777778;
static var SHOT_SMASH_SPEED_MAX = 38.8888888888889;
static var SHOT_SMASH_DIR_MIN = 1.30899693899575;
static var SHOT_SMASH_DIR_MAX = 1.83259571459405;
static var SHOT_JUMP_SHOT_TIME = 208.333333333333;
static var SHOT_JUMP_SOUND_TIME = 208.333333333333;
static var SHOT_JUMP_END_TIME = 500;
static var SHOT_JUMP_POWER_TIME = 1000;
static var SHOT_JUMP_POS = 1.15;
static var SHOT_JUMP_NEAR_LIMIT = 0.5;
static var SHOT_JUMP_FAR_LIMIT = 1.5;
static var SHOT_JUMP_SPEED = 13.8888888888889;
static var SHOT_JUMP_SPEED_RANDOM = 1.38888888888889;
static var SHOT_JUMP_RAD = 0.698131700797732;
static var SHOT_JUMP_RAD_RANDOM = 0.0698131700797732;
static var SHOT_JUMP_DIR = (Math.PI/2);
static var SHOT_JUMP_DIR_RANDOM = 0.15707963267949;
static var RACKET_WIDTH = 0.8;
static var RACKET_HEIGHT = 0.6;
static var AUTO_MOVE_LIMIT = 4;
static var AUTO_SHOT_TIME_LIMIT = 3000;
static var MOVE_LIMIT_X = 3;
static var MOVE_LIMIT_Y = 1;
static var MD_NORMAL = 0;
static var MD_SERVE_PRE = 10;
static var MD_SERVE = 11;
static var MD_AUTO_MOVE = 20;
static var MD_SHOT_LEFT = 21;
static var MD_SHOT_RIGHT = 22;
static var MD_SHOT_SMASH = 23;
static var MD_SHOT_ACT = 24;
static var MD_JUMP_LEFT = 30;
static var MD_JUMP_RIGHT = 31;
static var MD_JUMP_ACT = 32;
static var MD_WIN = 40;
static var MD_LOSE = 41;
static var MD_NONE = 42;
static var MD_WAIT = 43;
static var GAGE_SERVE = 1;
static var GAGE_NORMAL = 2;
static var SHOTTYPE_NORMAL = 0;
static var SHOTTYPE_SMASH = 1;
static var SERVETYPE_LEFT = -1;
static var SERVETYPE_RIGHT = 1;
static var SHOT_DIR_MIN_DIST2 = 2;
static var SHOT_DIR_MAX_DIST2 = 12;
static var CONTROLL_HEIGHT = 0.8;
static var SHOT_DIR_MIN_DIST = 64;
static var SHOT_DIR_MAX_DIST = 164;
}
Symbol 1572 MovieClip [__Packages.app.enemy.Player] Frame 0
class app.enemy.Player extends app.enemy.Human
{
var m_mcMoveArrow, m_context, m_mcShotArea, m_mcGage, m_mouseIsDown, m_mouseIsUp, m_stMotion, m_shotPower, m_shotPowerNow, m_count, calcTargetDist, m_stY, m_mc, calcTargetDir, m_stShotY, m_stShotX, calcShotMinDist, m_shotType, m_shotMaxDir, m_shotMinDir, calcShotAccuracy, limitShotDir, m_serveType, m_stX, m_stTargetX, m_stTargetY, m_mcBase, m_mouseDownTime, m_mouseUpTime;
function Player (context, parentMC) {
super(context, parentMC, "PlayerMC");
m_mcMoveArrow = util.MovieClipFactory.createOnMc(parentMC, "MoveArrowMC", "MoveArrow", m_context.getBase());
m_mcMoveArrow._visible = false;
m_mcShotArea = util.MovieClipFactory.createOnMc(parentMC, "ShotAreaMC", "ShotArea", m_context.getBase());
m_mcShotArea._visible = false;
m_mcGage = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "PowerGageMC", "PowerGage", m_context.getBase());
m_mcGage._x = app.sys.Screen.WIDTH / 2;
m_mcGage._y = 354;
m_mcGage._visible = false;
m_mouseIsDown = false;
m_mouseIsUp = false;
Mouse.addListener(this);
}
function move() {
var _local2;
_local2 = super.move();
return(_local2);
}
function hit() {
super.hit();
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitPlayer();
}
function ctrl() {
return(super.ctrl());
}
function disp() {
super.disp();
var _local3;
switch (m_stMotion) {
case app.enemy.Human.MOT_SHOT_SERVE2 :
if (m_shotPower == -1) {
_local3 = m_shotPowerNow;
} else {
_local3 = m_shotPower;
}
_local3 = _local3 * 100;
m_mcGage.gotoAndStop(app.enemy.Human.GAGE_SERVE);
m_mcGage.Gage.Power._xscale = _local3;
m_mcGage._visible = true;
break;
case app.enemy.Human.MOT_SHOT_RIGHT :
case app.enemy.Human.MOT_SHOT_LEFT :
if (m_shotPower == -1) {
_local3 = m_count;
if (_local3 > app.enemy.Human.SHOT_NORMAL_POWER_TIME) {
_local3 = app.enemy.Human.SHOT_NORMAL_POWER_TIME;
}
} else {
_local3 = m_shotPower;
}
if (_local3 < app.enemy.Human.SHOT_NORMAL_LOB_TIME) {
_local3 = (0.166666666666667 * _local3) / app.enemy.Human.SHOT_NORMAL_LOB_TIME;
} else if (_local3 < app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
_local3 = 0.166666666666667 + ((0.166666666666667 * (_local3 - app.enemy.Human.SHOT_NORMAL_LOB_TIME)) / (app.enemy.Human.SHOT_NORMAL_DROP_TIME - app.enemy.Human.SHOT_NORMAL_LOB_TIME));
} else {
_local3 = 0.333333333333333 + ((0.666666666666667 * (_local3 - app.enemy.Human.SHOT_NORMAL_DROP_TIME)) / (app.enemy.Human.SHOT_NORMAL_POWER_TIME - app.enemy.Human.SHOT_NORMAL_DROP_TIME));
}
_local3 = util.Util.limitRange(_local3 * 100, 0, 100);
m_mcGage.gotoAndStop(app.enemy.Human.GAGE_NORMAL);
m_mcGage.Gage.Power._xscale = _local3;
m_mcGage._visible = true;
break;
case app.enemy.Human.MOT_SMASH :
if (m_shotPower == -1) {
_local3 = m_count;
if (_local3 > app.enemy.Human.SHOT_SMASH_POWER_TIME) {
_local3 = app.enemy.Human.SHOT_SMASH_POWER_TIME;
}
} else {
_local3 = m_shotPower;
}
_local3 = (_local3 * 100) / app.enemy.Human.SHOT_SMASH_POWER_TIME;
m_mcGage.gotoAndStop(app.enemy.Human.GAGE_SERVE);
m_mcGage.Gage.Power._xscale = _local3;
m_mcGage._visible = true;
break;
case app.enemy.Human.MOT_RUN :
default :
case app.enemy.Human.MOT_STAND :
case app.enemy.Human.MOT_SHOT_SERVE1 :
m_mcGage._visible = false;
}
if ((m_stMotion == app.enemy.Human.MOT_RUN) || (m_stMotion == app.enemy.Human.MOT_SHOT_SERVE1)) {
if (calcTargetDist() > 0.01) {
m_mcMoveArrow.Arrow._x = MOVEARROW_SPACE * app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayScale(m_stY);
m_mcMoveArrow._x = m_mc._x;
m_mcMoveArrow._y = m_mc._y - app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayHeight(m_stY, app.enemy.Human.CONTROLL_HEIGHT);
m_mcMoveArrow._rotation = (-calcTargetDir()) / (Math.PI/180);
m_mcMoveArrow._visible = true;
} else {
m_mcMoveArrow._visible = false;
}
} else {
m_mcMoveArrow._visible = false;
}
}
function destroy() {
Mouse.removeListener(this);
m_mcGage.removeMovieClip();
m_mcShotArea.removeMovieClip();
m_mcMoveArrow.removeMovieClip();
super.destroy();
}
function calcShotParam() {
var _local5;
var _local7;
var _local14;
var _local17;
var _local21;
var _local18;
var _local10;
var _local12;
var _local9;
var _local8;
var _local15;
var _local20;
var _local3;
var _local16;
var _local2;
var _local4;
var _local19;
var _local11;
var _local6;
var _local13 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
_local6 = m_shotPower;
if (_local6 == -1) {
_local6 = m_count;
}
if (m_stShotY < (app.sys.Param.COURT_HEIGHT / 2)) {
_local5 = _local13.getPositionX() + ((m_stY - _local13.getPositionY()) / Math.tan(_local13.getDir()));
_local7 = m_stY;
_local3 = Math.atan2(m_stShotY - _local7, m_stShotX - _local5);
_local16 = util.Util.getDist(m_stShotY - _local7, m_stShotX - _local5);
_local15 = calcShotMinDist();
_local20 = app.enemy.Human.SHOT_DIR_MAX_DIST2;
if (m_shotType == app.enemy.Human.SHOTTYPE_NORMAL) {
if (_local6 < app.enemy.Human.SHOT_NORMAL_LOB_TIME) {
_local2 = (app.sys.Param.COURT_HEIGHT / 8) * 7;
} else if (_local6 < app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
_local2 = (app.sys.Param.COURT_HEIGHT / 8) * 5;
} else {
_local2 = (app.sys.Param.COURT_HEIGHT / 16) * 13;
}
} else {
_local2 = (app.sys.Param.COURT_HEIGHT / 8) * 6;
}
if (((_local3 >= Math.PI) || (_local3 <= 0)) || (_local16 < _local15)) {
_local3 = (Math.PI/2);
}
_local8 = m_shotMaxDir;
_local9 = m_shotMinDir;
_local4 = _local5 + ((_local2 - _local7) / Math.tan(_local9));
if (_local4 > ((app.sys.Param.COURT_WIDTH / 2) - 0.1)) {
_local4 = (app.sys.Param.COURT_WIDTH / 2) - 0.1;
_local9 = Math.atan2(_local2 - _local7, _local4 - _local5);
}
_local4 = _local5 + ((_local2 - _local7) / Math.tan(_local8));
if (_local4 < (((-app.sys.Param.COURT_WIDTH) / 2) + 0.1)) {
_local4 = ((-app.sys.Param.COURT_WIDTH) / 2) + 0.1;
_local8 = Math.atan2(_local2 - _local7, _local4 - _local5);
}
_local19 = calcShotAccuracy(_local3, _local16, _local15, _local20);
_local11 = _local8 - _local9;
_local11 = _local11 * _local19;
_local3 = limitShotDir(_local3, _local11, _local9, _local8);
_local14 = _local5 + ((_local2 - m_stY) / Math.tan(_local3));
_local17 = _local2;
} else {
_local21 = (-app.sys.Param.COURT_WIDTH) / 2;
_local18 = app.sys.Param.COURT_WIDTH / 2;
if (m_shotType == app.enemy.Human.SHOTTYPE_NORMAL) {
if (_local6 < app.enemy.Human.SHOT_NORMAL_LOB_TIME) {
_local10 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
_local12 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
} else if (_local6 < app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
_local10 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local12 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
} else {
_local10 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local12 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
}
} else {
_local10 = (app.sys.Param.COURT_HEIGHT / 4) * 2;
_local12 = (app.sys.Param.COURT_HEIGHT / 4) * 4;
}
_local14 = util.Util.limitRange(m_stShotX, _local21 - 0.5, _local18 + 0.5);
_local17 = util.Util.limitRange(m_stShotY, _local10, _local12 + 0.5);
_local11 = (Math.PI/180);
}
return(calcShotAreaParam(_local14, _local17, _local11));
}
function calcServeParam() {
var _local3;
var _local5;
var _local10;
var _local13;
var _local21;
var _local20;
var _local2;
var _local7;
var _local16;
var _local19;
var _local11;
var _local12;
var _local15;
var _local17;
var _local4;
var _local6;
var _local9;
var _local18;
var _local14;
var _local8 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
if (m_stShotY < (app.sys.Param.COURT_HEIGHT / 2)) {
_local3 = _local8.getPositionX() + ((m_stY - _local8.getPositionY()) / Math.tan(_local8.getDir()));
_local5 = m_stY;
_local6 = Math.atan2(m_stShotY - _local5, m_stShotX - _local3);
_local18 = util.Util.getDist(m_stShotY - _local5, m_stShotX - _local3);
_local2 = ((m_serveType == app.enemy.Human.SERVETYPE_LEFT) ? 0 : ((-app.sys.Param.COURT_WIDTH) / 2));
_local7 = _local2 + (app.sys.Param.COURT_WIDTH / 2);
_local4 = ((app.sys.Param.COURT_HEIGHT / 4) * 3) - 0.1;
_local11 = Math.atan2(_local4 - _local5, _local2 - _local3);
_local12 = Math.atan2(_local4 - _local5, _local7 - _local3);
_local15 = calcShotMinDist();
_local17 = app.enemy.Human.SHOT_DIR_MAX_DIST2;
_local14 = calcShotAccuracy(_local6, _local18, _local15, _local17);
_local9 = (_local11 - _local12) * _local14;
_local6 = limitShotDir(_local6, _local9, _local12, _local11);
_local10 = _local3 + ((_local4 - m_stY) / Math.tan(_local6));
_local13 = _local4;
} else {
_local2 = ((m_serveType == app.enemy.Human.SERVETYPE_LEFT) ? 0 : ((-app.sys.Param.COURT_WIDTH) / 2));
_local7 = _local2 + (app.sys.Param.COURT_WIDTH / 2);
_local16 = app.sys.Param.COURT_HEIGHT / 2;
_local19 = (app.sys.Param.COURT_HEIGHT / 4) * 3;
_local10 = util.Util.limitRange(m_stShotX, _local2 - 0.5, _local7 + 0.5);
_local13 = util.Util.limitRange(m_stShotY, _local16, _local19 + 0.5);
_local9 = (Math.PI/180);
}
return(calcShotAreaParam(_local10, _local13, _local9));
}
function calcShotAreaParam(shotX, shotY, range) {
var _local2;
var _local3;
var _local5;
var _local6;
var _local4 = {};
_local2 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayPosition(m_stX, m_stY);
_local2.y = _local2.y - app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayHeight(m_stY, app.enemy.Human.CONTROLL_HEIGHT);
_local3 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcDisplayPosition(shotX, shotY);
_local6 = util.Util.getDist(_local3.y - _local2.y, _local3.x - _local2.x);
_local5 = Math.atan2(_local2.y - _local3.y, _local3.x - _local2.x);
_local4.dir = _local5;
_local4.range = range;
_local4.dist = _local6;
return(_local4);
}
function calcTargetPos(x, y) {
var _local2;
_local2 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcMouseToCourtPosition(x, y, app.enemy.Human.CONTROLL_HEIGHT);
m_stTargetX = _local2.x;
m_stTargetY = _local2.y;
}
function getBaseScale() {
return(DISP_SCALE);
}
function getReachTime(y) {
return(app.sys.SysInfo.__get__MatchInfo().__get__Ball().getReachTime(y));
}
function checkHit(x, y, z, xs, ys, zs) {
app.sys.SysInfo.__get__Collision().setPlayerCheck(x, y, z, xs, ys, zs);
}
function updateTargetPosServe() {
calcTargetPos(m_mcBase._xmouse, app.sys.SysInfo.__get__MatchInfo().__get__Court().calcCourtToMousePositionY(-app.sys.Param.SERVE_Y, app.enemy.Human.CONTROLL_HEIGHT));
}
function updateTargetPosNormal() {
calcTargetPos(m_mcBase._xmouse, m_mcBase._ymouse);
}
function updateShotDir() {
var _local2;
_local2 = app.sys.SysInfo.__get__MatchInfo().__get__Court().calcMouseToCourtPositionNone(m_mcBase._xmouse, m_mcBase._ymouse);
m_stShotX = _local2.x;
m_stShotY = _local2.y;
}
function mouseIsDown() {
return(m_mouseIsDown);
}
function mouseIsUp() {
return(m_mouseIsUp);
}
function mouseClear() {
m_mouseIsDown = false;
m_mouseIsUp = false;
}
function onMouseDown() {
m_mouseIsDown = true;
m_mouseDownTime = getTimer();
}
function onMouseMove() {
}
function onMouseUp() {
if (m_mouseIsDown) {
m_mouseIsUp = true;
m_mouseUpTime = getTimer();
}
}
function onMouseWheel() {
}
function setSpeed(speed) {
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setSpeed(speed);
}
function setSmash(isSmash) {
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setSmash(isSmash);
}
static var DISP_SCALE = 1.15;
static var MOVEARROW_SPACE = 56;
}
Symbol 1573 MovieClip [__Packages.app.enemy.Computer] Frame 0
class app.enemy.Computer extends app.enemy.Human
{
var m_param, m_mouseIsDown, m_mouseIsUp, m_comMode, m_serveType, m_stTargetX, m_stTargetY, m_isRecieve, m_comTurnCount, calcTargetDist, m_comCount, m_stShotX, m_stShotY, getBallDir, m_stY, m_stX, m_mode, m_comPowerTime, m_shotAnimeTime, m_shotShotTime, m_reachTime, calcShotMinDist, m_shotMinDir, m_shotMaxDir;
function Computer (context, parentMC, stage, param) {
super(context, parentMC, ("Com" + stage) + "MC");
m_param = param;
m_mouseIsDown = false;
m_mouseIsUp = false;
m_comMode = MDC_NORMAL;
}
function move() {
var _local23;
var _local10 = app.sys.SysInfo.__get__MatchInfo().__get__Ball();
var _local12;
switch (m_comMode) {
case MDC_SERVE :
var _local22;
var _local18;
_local22 = ((m_serveType == app.enemy.Human.SERVETYPE_LEFT) ? ((-app.sys.Param.COURT_WIDTH) / 2) : 0);
_local22 = _local22 + (app.sys.Param.COURT_WIDTH / 4);
_local18 = (app.sys.Param.COURT_WIDTH / 2) * m_param.ServeMove;
m_stTargetX = (_local22 + (Math.random() * _local18)) - (_local18 / 2);
m_stTargetY = -0.25;
m_comMode = MDC_SERVE_MOVE_WAIT;
m_isRecieve = false;
m_comTurnCount = 0;
break;
case MDC_SERVE_MOVE_WAIT :
if (calcTargetDist() < 0.01) {
m_comMode = MDC_SERVE_PRE;
}
break;
case MDC_SERVE_PRE :
m_comCount = SERVE_BASE_WAIT + (Math.random() * SERVE_RANDOM_WAIT);
m_comMode = MDC_SERVE_PRE_WAIT;
break;
case MDC_SERVE_PRE_WAIT :
m_comCount = m_comCount - app.sys.SysInfo.getRate();
if (m_comCount < 0) {
m_comMode = MDC_SERVE_SHOT;
}
break;
case MDC_SERVE_SHOT :
var _local25;
_local25 = m_param.ServePowerBase + (Math.random() * m_param.ServePowerRandom);
m_comCount = app.enemy.Human.SERVE_POWER_MAX_TIME * _local25;
m_mouseIsDown = true;
var _local19;
_local19 = ((m_serveType == app.enemy.Human.SERVETYPE_LEFT) ? 0 : ((-app.sys.Param.COURT_WIDTH) / 2));
_local19 = _local19 + (app.sys.Param.COURT_WIDTH / 4);
_local18 = (m_param.ServeRange * app.sys.Param.COURT_WIDTH) / 4;
m_stShotX = (_local19 + (Math.random() * _local18)) - (_local18 / 2);
m_stShotY = ((app.sys.Param.COURT_HEIGHT / 4) * 3) - 0.1;
m_comMode = MDC_SERVE_SHOT_WAIT;
break;
case MDC_SERVE_SHOT_WAIT :
m_comCount = m_comCount - app.sys.SysInfo.getRate();
if (m_comCount < 0) {
m_mouseIsUp = true;
m_comMode = MDC_NORMAL;
}
break;
case MDC_RECIEVE :
if (_local10.isAuto() && (_local10.getSpeedY() > 0.1)) {
m_comMode = MDC_NORMAL;
m_isRecieve = true;
m_comTurnCount = 0;
}
break;
case MDC_NORMAL :
_local12 = getBallDir(_local10.getDir());
if (((_local12 > Math.PI) && (_local10.getSpeedY() > 0)) && (_local10.isAuto())) {
if (app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().isComputerTurn()) {
m_comCount = m_param.ShotReactionTime;
m_comMode = MDC_NORMAL_WAIT;
m_comTurnCount++;
}
}
if (app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().isPlayerTurn()) {
if (m_param.ShotBackCenter > Math.random()) {
m_stTargetX = 0;
}
if (m_stTargetY < 1) {
m_stTargetY = 1;
}
if (m_param.ShotBackCenter > Math.random()) {
m_stTargetY = m_stTargetY + 0.5;
if (m_stTargetY > ((app.sys.Param.COURT_HEIGHT / 2) - 1)) {
m_stTargetY = (app.sys.Param.COURT_HEIGHT / 2) - 1;
}
}
m_comMode = MDC_WAIT_MOVE;
}
break;
case MDC_NORMAL_WAIT :
m_comCount = m_comCount - app.sys.SysInfo.getRate();
if (m_comCount <= 0) {
m_comMode = MDC_MOVE;
}
break;
case MDC_MOVE :
var _local8;
var _local4;
var _local5;
var _local9;
var _local11;
var _local3;
var _local16;
var _local24;
var _local27;
var _local6;
var _local7;
var _local17;
var _local20;
var _local21;
if (m_isRecieve) {
m_stTargetY = m_stY;
m_isRecieve = false;
} else {
_local21 = _local10.getReachHeight(transY(m_stY));
_local8 = _local10.getJustList();
_local9 = 100000 /* 0x0186A0 */;
_local11 = -1;
_local3 = 0;
while (_local3 < _local8.length) {
_local4 = _local8[_local3];
_local6 = transX(_local4.x);
_local7 = transY(_local4.y);
_local5 = util.Util.getDist(m_stX - _local6, m_stY - _local7);
if (_local5 < _local9) {
_local9 = _local5;
_local11 = _local3;
}
_local3++;
}
if (_local11 != -1) {
_local4 = _local8[_local11];
_local6 = transX(_local4.x);
_local7 = transY(_local4.y);
if (((_local21 == NaN) || (_local21 > 2.5)) || ((Math.abs(_local7 - m_stY) < 1) && (_local7 > -1))) {
m_stTargetX = _local6;
m_stTargetY = _local7;
} else {
m_stTargetY = m_stY;
}
} else {
m_stTargetY = m_stY;
}
}
_local12 = getBallDir(_local10.getDir());
_local16 = _local10.getPosition();
_local24 = transY(_local16.y) - m_stTargetY;
_local6 = (transX(_local16.x) - ((_local24 / Math.sin(_local12)) * Math.cos(_local12))) - m_stX;
_local20 = _local6 - app.enemy.Human.SHOT_RIGHT_POS;
_local17 = _local6 - app.enemy.Human.SHOT_LEFT_POS;
if (Math.abs(_local20) >= Math.abs(_local17)) {
m_stTargetX = m_stX + _local17;
} else {
m_stTargetX = m_stX + _local20;
}
m_comMode = MDC_SHOT_MOVE;
break;
case MDC_WAIT_MOVE :
if (app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().isComputerTurn()) {
m_comMode = MDC_NORMAL;
}
break;
case MDC_SHOT_MOVE :
if (calcTargetDist() < 0.01) {
m_mouseIsDown = true;
m_comMode = MDC_SHOT_MOVE_WAIT;
}
break;
case MDC_SHOT_MOVE_WAIT :
if (m_mode == app.enemy.Human.MD_SHOT_ACT) {
var _local13;
m_stShotX = m_stX;
m_stShotY = (app.sys.Param.COURT_HEIGHT / 4) * 3;
if ((app.sys.SysInfo.__get__MatchInfo().__get__Player().getY() > ((app.sys.Param.COURT_HEIGHT / 16) * 5)) && (m_param.ShotRob > Math.random())) {
m_mouseIsUp = true;
m_comPowerTime = 0;
} else {
_local13 = m_reachTime - (m_shotShotTime - m_shotAnimeTime);
if (_local13 >= app.enemy.Human.SHOT_NORMAL_POWER_TIME) {
_local13 = app.enemy.Human.SHOT_NORMAL_POWER_TIME;
}
if (_local13 < app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
m_comPowerTime = 0;
m_mouseIsUp = true;
} else {
m_comPowerTime = Math.random() * _local13;
if (m_comPowerTime < app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
if (_local13 > app.enemy.Human.SHOT_NORMAL_DROP_TIME) {
m_comPowerTime = app.enemy.Human.SHOT_NORMAL_DROP_TIME;
}
}
}
}
m_comMode = MDC_SHOT_POWER;
}
break;
case MDC_SHOT_POWER :
m_comPowerTime = m_comPowerTime - app.sys.SysInfo.getRate();
if (m_comPowerTime < 0) {
m_mouseIsUp = true;
m_comMode = MDC_SHOT_DIR;
}
break;
case MDC_SHOT_DIR :
if (m_reachTime < (m_shotShotTime - m_shotAnimeTime)) {
if (m_param.ShotReverse > Math.random()) {
var _local26;
var _local15;
_local26 = m_param.ShotReversePowerBase + (Math.random() * m_param.ShotReversePowerRandom);
_local15 = ((app.sys.Param.COURT_WIDTH / 8) * 1) + (((app.sys.Param.COURT_WIDTH / 8) * 2) * _local26);
if (app.sys.SysInfo.__get__MatchInfo().__get__Player().getX() > 0) {
m_stShotX = _local15;
} else {
m_stShotX = -_local15;
}
} else {
var _local14;
_local14 = calcShotMinDist();
m_stShotY = m_stY - (_local14 * 1.5);
m_stShotX = m_stX - util.Util.getRandomHalf(_local14);
}
m_comMode = MDC_SHOT_WAIT;
}
break;
case MDC_SHOT_WAIT :
_local12 = getBallDir(_local10.getDir());
if (_local12 < Math.PI) {
m_comMode = MDC_NORMAL;
}
break;
case MDC_NONE :
m_stTargetX = m_stX;
m_stTargetY = m_stY;
}
_local23 = super.move();
return(_local23);
}
function hit() {
super.hit();
app.sys.SysInfo.__get__MatchInfo().__get__MatchLoop().setHitComputer();
}
function ctrl() {
return(super.ctrl());
}
function disp() {
super.disp();
}
function destroy() {
super.destroy();
}
function calcShotDir() {
var _local2;
var _local3;
_local2 = m_shotMaxDir - m_shotMinDir;
_local3 = ((m_shotMaxDir + m_shotMinDir) / 2) + (((_local2 * Math.random()) - (_local2 / 2)) / 2);
return(_local3);
}
function getRange() {
return(m_stX);
}
function getX() {
return(transX(m_stX));
}
function getY() {
return(transY(m_stY));
}
function transX(x) {
return(-x);
}
function transY(y) {
return(app.sys.Param.COURT_HEIGHT - y);
}
function transDir(dir) {
return(util.Util.plusRad(dir + Math.PI));
}
function getBaseScale() {
return(DISP_SCALE);
}
function getReachTime(y) {
return(app.sys.SysInfo.__get__MatchInfo().__get__Ball().getReachTime(transY(y)));
}
function checkHit(x, y, z, xs, ys, zs) {
app.sys.SysInfo.__get__Collision().setComputerCheck(-x, app.sys.Param.COURT_HEIGHT - y, z, xs, ys, zs);
}
function updateTargetPosServe() {
}
function updateTargetPosNormal() {
}
function updateShotDir() {
}
function mouseIsDown() {
return(m_mouseIsDown);
}
function mouseIsUp() {
return(m_mouseIsUp);
}
function mouseClear() {
m_mouseIsDown = false;
m_mouseIsUp = false;
}
function setWinAction() {
super.setWinAction();
m_comMode = MDC_NONE;
}
function setLoseAction() {
super.setLoseAction();
m_comMode = MDC_NONE;
}
function setNoneAction() {
super.setNoneAction();
m_comMode = MDC_NONE;
}
function startServe(isServe, shotCount) {
super.startServe(isServe, shotCount);
if (isServe) {
m_comMode = MDC_SERVE;
} else {
m_comMode = MDC_RECIEVE;
}
}
static var DISP_SCALE = 2.2;
static var MDC_NORMAL = 10;
static var MDC_NORMAL_WAIT = 12;
static var MDC_MOVE = 13;
static var MDC_WAIT_MOVE = 15;
static var MDC_SHOT_MOVE = 20;
static var MDC_SHOT_MOVE_WAIT = 23;
static var MDC_SHOT_POWER = 30;
static var MDC_SHOT_DIR = 35;
static var MDC_SHOT_WAIT = 40;
static var MDC_NONE = 99;
static var MDC_SERVE = 50;
static var MDC_SERVE_MOVE_WAIT = 51;
static var MDC_SERVE_PRE = 52;
static var MDC_SERVE_PRE_WAIT = 53;
static var MDC_SERVE_SHOT = 54;
static var MDC_SERVE_SHOT_WAIT = 55;
static var MDC_RECIEVE = 60;
static var SERVE_BASE_WAIT = 500;
static var SERVE_RANDOM_WAIT = 1000;
}
Symbol 1574 MovieClip [__Packages.app.loop.Loop] Frame 0
class app.loop.Loop extends app.enemy.Enemy
{
function Loop (context, nowFlow, preFlow) {
super(context);
}
}
Symbol 1575 MovieClip [__Packages.app.loop.MatchLoop] Frame 0
class app.loop.MatchLoop extends app.loop.Loop
{
var m_mode, m_count, m_playerPoint, m_playerWin, m_computerPoint, m_computerWin, m_gameCount, m_smashPoint, m_maxSpeed, m_gameTime, m_score, m_gameMode, m_posRate, m_isUpdate, m_isMenuUpdate, m_isSelectUpdate, m_isShowMenu, m_isInfoUpdate, m_infoUpdateCount, m_result, m_mainMenuIdx, m_rallyCount, m_checkMouseClick, m_checkMouseMove, m_wl, m_context, m_mcBase, m_mcBaseCourt, m_court, m_mcBaseBoard, m_board, m_mcInfo, m_mcPlayBase, m_mcStatus, m_curMenuIdx, m_btnMcList, m_btnShowMcList, m_gameStatus, m_isStatusUpdate, m_shotCount, m_serveFail, m_isSmash, m_isPlayerTurn, m_hitNet, m_hitGround, m_hitGroundX, m_hitGroundY, m_onceBound, m_hitComputer, m_hitPlayer, m_nextGameMode, m_hitWall, m_mcCursor;
function MatchLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
m_mode = MD_INIT;
m_count = 0;
m_playerPoint = 0;
m_playerWin = 0;
m_computerPoint = 0;
m_computerWin = 0;
m_gameCount = 0;
m_smashPoint = 0;
m_maxSpeed = 0;
m_gameTime = 0;
m_score = 0;
m_gameMode = 0;
m_posRate = 0;
m_isUpdate = false;
m_isMenuUpdate = false;
m_isSelectUpdate = false;
m_isShowMenu = false;
m_isInfoUpdate = false;
m_infoUpdateCount = -1;
m_result = RESULT_NONE;
m_mainMenuIdx = MENU_START;
m_rallyCount = 0;
initCursor();
Mouse.addListener(this);
m_checkMouseClick = false;
m_checkMouseMove = false;
app.sys.SysInfo.__get__MatchInfo().__set__MatchLoop(this);
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
}
function move() {
var _local3;
do {
_local3 = false;
switch (m_mode) {
case MD_INIT :
m_mcBase = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "MaskMC", "Dummy", m_context.getBase());
m_mcBase._visible = true;
m_mcBaseCourt = util.MovieClipFactory.createEmptyOnMc(m_mcBase.dummy);
m_mcBaseCourt._x = 0;
m_mcBaseCourt._y = 0;
m_mcBaseCourt._visible = true;
m_court = new app.enemy.Court(m_context, m_mcBaseCourt);
m_mcBaseBoard = util.MovieClipFactory.createEmptyOnMc(m_mcBase.dummy);
m_mcBaseBoard._x = 0;
m_mcBaseBoard._y = 0;
m_mcBaseBoard._visible = true;
m_board = new app.enemy.ScoreBoard(m_context, m_mcBaseBoard);
m_mcInfo = util.MovieClipFactory.createOnMc(m_mcBaseCourt, "InfoMC", "Info");
m_mcInfo._x = app.sys.Screen.WIDTH / 2;
m_mcInfo._y = 0;
m_mcInfo._visible = true;
m_mcPlayBase = util.MovieClipFactory.createOnMc(m_mcBase.dummy, "PlayBaseMC", "PlayBase");
m_mcPlayBase._x = app.sys.Screen.WIDTH / 2;
m_mcPlayBase._y = app.sys.Screen.HEIGHT / 2;
m_mcPlayBase._visible = true;
m_mcStatus = util.MovieClipFactory.createOnMc(m_mcBase.dummy, "GameTextMC", "GameText");
m_mcStatus._x = app.sys.Screen.WIDTH / 2;
m_mcStatus._y = (app.sys.Screen.HEIGHT - m_mcStatus._height) / 2;
m_mcStatus.stop();
m_mcStatus._visible = false;
createCursor();
app.sys.SysInfo.__get__MatchInfo().__get__Player().startServe(true, 0);
app.sys.SysInfo.__get__MatchInfo().__get__Player().setNoneAction();
app.sys.SysInfo.__get__MatchInfo().__get__Computer().startServe(true, 0);
app.sys.SysInfo.__get__MatchInfo().__get__Computer().setNoneAction();
app.sys.SysInfo.__get__SoundManager().stopBGM();
app.sys.SysInfo.setBgmID(-1);
m_mode = MD_START;
_local3 = true;
break;
case MD_START :
util.Quality.setHigh();
m_curMenuIdx = MENU_START;
initMenu(m_curMenuIdx);
m_board.setWinCount(m_playerWin, m_computerWin);
m_board.setSmashPoint(m_smashPoint);
m_board.setMaxSpeed(m_maxSpeed);
m_board.setPlayTime(m_gameTime);
m_board.setScore(m_score);
m_board.setResult(m_result);
m_board.setShowMedal(false);
m_board.setVisible(true);
m_board.setUpdate();
m_posRate = POSRATE_BOARD;
m_isUpdate = true;
m_isShowMenu = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_isInfoUpdate = true;
m_infoUpdateCount = 0;
m_checkMouseMove = true;
m_mode = MD_START_WAIT;
_local3 = true;
break;
case MD_START_WAIT :
var _local4 = m_mainMenuIdx;
if (moveMenu()) {
app.sys.SysInfo.__get__SoundManager().playSE("OK");
hideCursor();
m_mode = MD_COURT_IN;
_local3 = true;
}
if (_local4 != m_mainMenuIdx) {
m_isSelectUpdate = true;
}
break;
case MD_COURT_IN :
util.Quality.setMedium();
m_count = 0;
m_isMenuUpdate = true;
m_isShowMenu = false;
m_isInfoUpdate = true;
app.sys.SysInfo.__get__MatchInfo().__get__Player().startServe(true, 0);
app.sys.SysInfo.__get__MatchInfo().__get__Player().setNoneAction();
app.sys.SysInfo.__get__MatchInfo().__get__Computer().startServe(true, 0);
app.sys.SysInfo.__get__MatchInfo().__get__Computer().setNoneAction();
m_playerPoint = 0;
m_computerPoint = 0;
m_mode = MD_COURT_IN_WAIT;
_local3 = true;
break;
case MD_COURT_IN_WAIT :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= BOARD_SLIDE_TIME) {
m_count = BOARD_SLIDE_TIME;
m_mode = MD_PLAY;
}
m_posRate = util.Util.calcTween(POSRATE_BOARD, POSRATE_COURT, m_count / BOARD_SLIDE_TIME, 100);
m_isUpdate = true;
break;
case MD_PLAY :
util.Quality.setMedium();
m_gameMode = GM_INIT;
gameMove();
m_mode = MD_PLAY_WAIT;
_local3 = true;
break;
case MD_PLAY_WAIT :
m_gameTime = m_gameTime + app.sys.SysInfo.getRate();
if (gameMove()) {
if (m_playerPoint > m_computerPoint) {
m_result = RESULT_GAMEPLAYER;
m_playerWin++;
} else {
m_result = RESULT_GAMECOMPUTER;
m_computerWin++;
}
m_mode = MD_COURT_OUT;
_local3 = true;
}
break;
case MD_COURT_OUT :
util.Quality.setMedium();
m_curMenuIdx = MENU_INTERVAL;
initMenu(m_curMenuIdx);
m_board.setWinCount(m_playerWin, m_computerWin);
m_board.setSmashPoint(m_smashPoint);
m_board.setMaxSpeed(m_maxSpeed);
m_board.setPlayTime(m_gameTime);
m_board.setScore(m_score);
m_board.setResult(m_result);
m_board.setShowMedal(false);
m_board.setVisible(true);
m_board.setUpdate();
m_posRate = POSRATE_COURT;
m_count = 0;
m_isUpdate = true;
m_isMenuUpdate = true;
m_isShowMenu = false;
m_mode = MD_COURT_OUT_WAIT;
_local3 = true;
break;
case MD_COURT_OUT_WAIT :
m_count = m_count + app.sys.SysInfo.getRate();
if (m_count >= BOARD_SLIDE_TIME) {
m_count = BOARD_SLIDE_TIME;
m_mode = MD_BOARD;
}
m_posRate = util.Util.calcTween(POSRATE_COURT, POSRATE_BOARD, m_count / BOARD_SLIDE_TIME, 100);
m_isUpdate = true;
break;
case MD_BOARD :
util.Quality.setHigh();
m_isShowMenu = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_BOARD_WAIT;
_local3 = true;
break;
case MD_BOARD_WAIT :
_local4 = m_mainMenuIdx;
if (moveMenu()) {
app.sys.SysInfo.__get__SoundManager().playSE("OK");
hideCursor();
if (m_playerWin >= app.sys.Param.GAME_MAX) {
m_mode = MD_PLAYERWIN;
} else if (m_computerWin >= app.sys.Param.GAME_MAX) {
m_mode = MD_GAMEOVER;
} else {
m_mode = MD_COURT_IN;
}
}
if (_local4 != m_mainMenuIdx) {
m_isSelectUpdate = true;
}
break;
case MD_PLAYERWIN :
m_curMenuIdx = MENU_RESULT;
initMenu(m_curMenuIdx);
m_result = RESULT_PLAYERWIN;
m_board.setResult(m_result);
m_board.setUpdate();
m_isShowMenu = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_PLAYERWIN_WAIT;
_local3 = true;
break;
case MD_PLAYERWIN_WAIT :
_local4 = m_mainMenuIdx;
if (moveMenu()) {
app.sys.SysInfo.__get__SoundManager().playSE("OK");
hideCursor();
if (app.sys.SysInfo.getStageNum() >= app.sys.Param.STAGE_MAX) {
m_mode = MD_GAMECLEAR;
} else {
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_STAGECLEAR);
m_mode = MD_END;
}
}
if (_local4 != m_mainMenuIdx) {
m_isSelectUpdate = true;
}
break;
case MD_GAMEOVER :
m_curMenuIdx = MENU_RESULT;
initMenu(m_curMenuIdx);
m_result = RESULT_GAMEOVER;
m_board.setResult(m_result);
m_board.setUpdate();
m_isShowMenu = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_GAMEOVER_WAIT;
_local3 = true;
break;
case MD_GAMEOVER_WAIT :
_local4 = m_mainMenuIdx;
if (moveMenu()) {
app.sys.SysInfo.__get__SoundManager().playSE("OK");
hideCursor();
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_GAMEOVER);
m_mode = MD_END;
_local3 = true;
}
if (_local4 != m_mainMenuIdx) {
m_isSelectUpdate = true;
}
break;
case MD_GAMECLEAR :
m_curMenuIdx = MENU_RESULT;
initMenu(m_curMenuIdx);
m_result = RESULT_GAMECLEAR;
m_board.setResult(m_result);
m_board.setShowMedal(true);
m_board.setUpdate();
m_isShowMenu = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_GAMECLEAR_WAIT;
_local3 = true;
break;
case MD_GAMECLEAR_WAIT :
_local4 = m_mainMenuIdx;
if (moveMenu()) {
app.sys.SysInfo.__get__SoundManager().playSE("OK");
hideCursor();
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_GAMECLEAR);
m_mode = MD_END;
}
if (_local4 != m_mainMenuIdx) {
m_isSelectUpdate = true;
}
break;
case MD_END :
}
} while (_local3);
m_checkMouseClick = false;
m_checkMouseMove = false;
if (m_infoUpdateCount >= 0) {
m_infoUpdateCount = m_infoUpdateCount - app.sys.SysInfo.getRate();
if (m_infoUpdateCount < 0) {
m_infoUpdateCount = 0;
}
}
return(super.move());
}
function moveMenu() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcPlayBase._xmouse;
_local3 = m_mcPlayBase._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (m_btnShowMcList[_local2] && (hitCheckMC(m_btnMcList[_local2].mc, _local4, _local3))) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.__get__SoundManager().playSE("SelectMenu");
} else if (m_mainMenuIdx != _local5) {
app.sys.SysInfo.__get__SoundManager().playSE("MoveMenu");
}
m_mainMenuIdx = _local5;
} else {
m_mainMenuIdx = -1;
hideCursor();
}
}
return(_local6 != -1);
}
function gameMove() {
var _local6 = false;
var _local2;
var _local4 = app.sys.SysInfo.__get__MatchInfo().__get__Player();
var _local5 = app.sys.SysInfo.__get__MatchInfo().__get__Computer();
if (app.sys.SysInfo.__get__Debug().isActive()) {
if (Key.isDown(87)) {
m_gameMode = GM_POINT;
m_playerPoint = 5;
m_computerPoint = 0;
m_gameStatus = STATUS_NONE;
m_isStatusUpdate = true;
}
if (Key.isDown(76)) {
m_gameMode = GM_POINT;
m_playerPoint = 0;
m_computerPoint = 5;
m_gameStatus = STATUS_NONE;
m_isStatusUpdate = true;
}
}
do {
_local2 = false;
switch (m_gameMode) {
case GM_INIT :
_local4.setNoneAction();
_local5.setNoneAction();
m_playerPoint = 0;
m_computerPoint = 0;
m_shotCount = 0;
m_gameMode = GM_START;
break;
case GM_START :
m_serveFail = false;
m_gameMode = GM_SERVE;
m_rallyCount = 0;
m_isSmash = false;
_local2 = true;
break;
case GM_SERVE :
if (isPlayerServe()) {
_local4.startServe(true, m_shotCount);
_local5.startServe(false, m_shotCount);
m_isPlayerTurn = false;
} else {
_local4.startServe(false, m_shotCount);
_local5.startServe(true, m_shotCount);
m_isPlayerTurn = true;
}
m_gameMode = GM_SERVE_WAIT;
break;
case GM_SERVE_WAIT :
if (m_hitNet) {
m_gameMode = GM_FAULT;
_local2 = true;
} else if (m_hitGround) {
if (isPlayerServe()) {
if ((((m_hitGroundX >= (((-app.sys.Param.COURT_WIDTH) / 2) + (((m_shotCount % 2) * app.sys.Param.COURT_WIDTH) / 2))) && (m_hitGroundX <= (((m_shotCount % 2) * app.sys.Param.COURT_WIDTH) / 2))) && (m_hitGroundY >= (app.sys.Param.COURT_HEIGHT / 2))) && (m_hitGroundY <= ((app.sys.Param.COURT_HEIGHT / 4) * 3))) {
m_onceBound = true;
m_gameMode = GM_RALLY_COMPUTER_WAIT;
m_hitGround = false;
_local2 = true;
} else {
m_gameMode = GM_FAULT;
_local2 = true;
}
} else if ((((m_hitGroundX >= (-(((m_shotCount % 2) * app.sys.Param.COURT_WIDTH) / 2))) && (m_hitGroundX <= ((app.sys.Param.COURT_WIDTH / 2) - (((m_shotCount % 2) * app.sys.Param.COURT_WIDTH) / 2)))) && (m_hitGroundY >= ((app.sys.Param.COURT_HEIGHT / 4) * 1))) && (m_hitGroundY <= ((app.sys.Param.COURT_HEIGHT / 4) * 2))) {
m_onceBound = true;
m_gameMode = GM_RALLY_PLAYER_WAIT;
m_hitGround = false;
_local2 = true;
} else {
m_gameMode = GM_FAULT;
_local2 = true;
}
} else if (isPlayerServe()) {
if (m_hitComputer) {
m_gameMode = GM_POINT_PLAYER;
}
} else if (m_hitPlayer) {
m_gameMode = GM_POINT_COMPUTER;
}
break;
case GM_FAULT :
if (m_serveFail) {
m_gameStatus = STATUS_DOUBLE_FAULT;
m_nextGameMode = GM_DOUBLE_FAULT;
} else {
m_gameStatus = STATUS_FAULT;
m_nextGameMode = GM_SERVE;
m_serveFail = true;
}
m_gameMode = GM_RESULT;
break;
case GM_DOUBLE_FAULT :
if (isPlayerServe()) {
m_gameMode = GM_POINT_COMPUTER;
} else {
m_gameMode = GM_POINT_PLAYER;
}
_local2 = true;
break;
case GM_RALLY_PLAYER :
m_onceBound = false;
m_gameMode = GM_RALLY_PLAYER_WAIT;
m_isPlayerTurn = true;
_local2 = true;
break;
case GM_RALLY_PLAYER_WAIT :
if (m_hitGround) {
if (m_onceBound) {
m_gameMode = GM_POINT_COMPUTER;
_local2 = true;
} else if ((((m_hitGroundX >= ((-app.sys.Param.COURT_WIDTH) / 2)) && (m_hitGroundX <= (app.sys.Param.COURT_WIDTH / 2))) && (m_hitGroundY >= 0)) && (m_hitGroundY < (app.sys.Param.COURT_HEIGHT / 2))) {
m_onceBound = true;
m_rallyCount++;
m_hitGround = false;
_local2 = true;
} else {
app.sys.SysInfo.__get__SoundManager().playSE("Out");
m_gameMode = GM_POINT_PLAYER;
_local2 = true;
}
} else if (m_hitPlayer) {
if (!m_onceBound) {
m_rallyCount++;
}
m_gameMode = GM_RALLY_COMPUTER;
}
break;
case GM_RALLY_COMPUTER :
m_onceBound = false;
m_gameMode = GM_RALLY_COMPUTER_WAIT;
m_isPlayerTurn = false;
_local2 = true;
break;
case GM_RALLY_COMPUTER_WAIT :
if (m_hitGround) {
if (m_onceBound) {
m_gameMode = GM_POINT_PLAYER;
if (m_isSmash) {
m_smashPoint++;
app.sys.SysInfo.__get__SoundManager().playSE("SmashFinish");
}
_local2 = true;
} else if ((((m_hitGroundX >= ((-app.sys.Param.COURT_WIDTH) / 2)) && (m_hitGroundX <= (app.sys.Param.COURT_WIDTH / 2))) && (m_hitGroundY >= (app.sys.Param.COURT_HEIGHT / 2))) && (m_hitGroundY < app.sys.Param.COURT_HEIGHT)) {
m_onceBound = true;
m_rallyCount++;
m_hitGround = false;
_local2 = true;
} else {
app.sys.SysInfo.__get__SoundManager().playSE("Out");
m_gameMode = GM_POINT_COMPUTER;
_local2 = true;
}
} else if (m_hitComputer) {
if (!m_onceBound) {
m_rallyCount++;
}
m_gameMode = GM_RALLY_PLAYER;
}
break;
case GM_POINT_PLAYER :
var _local3;
m_playerPoint++;
m_gameMode = GM_POINT;
if (m_rallyCount == 0) {
_local3 = 1500;
} else {
_local3 = (10 - m_rallyCount) * 100;
if (_local3 < 100) {
_local3 = 100;
}
}
m_score = m_score + _local3;
if ((m_playerPoint < 4) && (m_rallyCount < 2)) {
app.sys.SysInfo.__get__SoundManager().playSE("Point");
}
_local2 = true;
break;
case GM_POINT_COMPUTER :
m_computerPoint++;
m_gameMode = GM_POINT;
_local2 = true;
break;
case GM_POINT :
if ((m_computerPoint == 4) && (m_playerPoint == 4)) {
m_computerPoint = 3;
m_playerPoint = 3;
}
if ((m_playerPoint >= 4) && ((m_playerPoint - m_computerPoint) >= 2)) {
_local4.setWinAction();
app.sys.SysInfo.__get__SoundManager().playSE("Win");
m_gameStatus = STATUS_GAME_PLAYER;
m_nextGameMode = GM_GAME_PLAYER;
} else if ((m_computerPoint >= 4) && ((m_computerPoint - m_playerPoint) >= 2)) {
_local5.setWinAction();
m_gameStatus = STATUS_GAME_COMPUTER;
m_nextGameMode = GM_GAME_COMPUTER;
} else if ((m_playerPoint >= 3) && (m_computerPoint >= 3)) {
if (m_playerPoint == m_computerPoint) {
m_gameStatus = STATUS_DEUCE;
} else if (m_playerPoint > m_computerPoint) {
m_gameStatus = STATUS_ADVANTAGE_PLAYER;
} else {
m_gameStatus = STATUS_ADVANTAGE_COMPUTER;
}
m_nextGameMode = GM_START;
m_isInfoUpdate = true;
} else {
m_gameStatus = STATUS_POINT;
m_nextGameMode = GM_START;
m_isInfoUpdate = true;
}
m_shotCount++;
m_gameMode = GM_RESULT;
_local2 = true;
break;
case GM_GAME_PLAYER :
_local5.setLoseAction();
_local6 = true;
break;
case GM_GAME_COMPUTER :
_local4.setLoseAction();
_local6 = true;
break;
case GM_RESULT :
m_gameCount = 0;
m_isStatusUpdate = true;
m_gameMode = GM_RESULT_WAIT;
_local2 = true;
break;
case GM_RESULT_WAIT :
m_gameCount = m_gameCount + app.sys.SysInfo.getRate();
if (m_gameCount < GAMESTATUS_DISP_TIME) {
break;
}
m_gameStatus = STATUS_NONE;
m_isStatusUpdate = true;
m_gameMode = m_nextGameMode;
}
} while (_local2);
m_hitNet = false;
m_hitWall = false;
m_hitGround = false;
m_hitPlayer = false;
m_hitComputer = false;
return(_local6);
}
function disp() {
if (m_isUpdate) {
var _local3;
_local3 = ((-m_posRate) * app.sys.Screen.HEIGHT) / 100;
m_mcBaseBoard._y = _local3;
m_mcBaseCourt._y = _local3 + app.sys.Screen.HEIGHT;
m_isUpdate = false;
}
if (m_isInfoUpdate) {
if (((m_playerPoint >= 3) && (m_computerPoint >= 3)) && ((m_playerPoint >= 4) || (m_computerPoint >= 4))) {
if (m_playerPoint > m_computerPoint) {
m_mcInfo.PlayerScore.Score.gotoAndStop(5);
m_mcInfo.CpuScore.Score.gotoAndStop(6);
} else {
m_mcInfo.PlayerScore.Score.gotoAndStop(6);
m_mcInfo.CpuScore.Score.gotoAndStop(5);
}
} else {
m_mcInfo.PlayerScore.Score.gotoAndStop(m_playerPoint + 1);
m_mcInfo.CpuScore.Score.gotoAndStop(m_computerPoint + 1);
}
m_mcInfo.CpuScore.Cpu.gotoAndStop(app.sys.SysInfo.getStageNum());
m_isInfoUpdate = false;
}
if (m_infoUpdateCount >= 0) {
var _local4;
m_mcInfo.Speed.Speed.text = m_maxSpeed;
if (m_infoUpdateCount > (INFO_UPDATE_TIME - INFO_UPDATE_TIME_FULL)) {
_local4 = 100;
} else {
_local4 = (m_infoUpdateCount / (INFO_UPDATE_TIME - INFO_UPDATE_TIME_FULL)) * 100;
}
m_mcInfo.Speed._alpha = _local4;
if (m_infoUpdateCount == 0) {
m_infoUpdateCount = -1;
}
}
if (m_isStatusUpdate) {
if (m_gameStatus == STATUS_NONE) {
m_mcStatus._visible = false;
} else {
m_mcStatus.gotoAndStop(m_gameStatus);
if (m_gameStatus == STATUS_POINT) {
if (isPlayerServe()) {
m_mcStatus.Status.PlayerPoint.gotoAndStop(m_playerPoint + 1);
m_mcStatus.Status.ComputerPoint.gotoAndStop(m_computerPoint + 1);
} else {
m_mcStatus.Status.PlayerPoint.gotoAndStop(m_computerPoint + 1);
m_mcStatus.Status.ComputerPoint.gotoAndStop(m_playerPoint + 1);
}
}
m_mcStatus._visible = true;
}
m_isStatusUpdate = false;
}
switch (m_curMenuIdx) {
case MENU_START :
case MENU_INTERVAL :
case MENU_RESULT :
if (m_isMenuUpdate) {
showMenu(m_isShowMenu);
m_isMenuUpdate = false;
}
if (!m_isSelectUpdate) {
break;
}
selectMenu(m_mainMenuIdx);
m_isSelectUpdate = false;
}
super.disp();
}
function destroy() {
m_court.destroy();
m_board.destroy();
m_mcPlayBase.removeMovieClip();
m_mcInfo.removeMovieClip();
m_mcBaseCourt.removeMovieClip();
m_mcBaseBoard.removeMovieClip();
m_mcBase.removeMovieClip();
destroyCursor();
Mouse.removeListener(this);
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
super.destroy();
}
function setHitPlayer() {
m_hitPlayer = true;
}
function setHitComputer() {
m_hitComputer = true;
}
function setHitGround(x, y) {
m_hitGround = true;
m_hitGroundX = x;
m_hitGroundY = y;
}
function setHitNet() {
m_hitNet = true;
}
function setHitWall() {
m_hitWall = true;
}
function setSpeed(speed) {
speed = Math.floor((speed * 3600) / 1000);
if (m_maxSpeed < speed) {
m_maxSpeed = speed;
m_infoUpdateCount = INFO_UPDATE_TIME;
}
}
function isPlayerServe() {
return(((m_playerWin + m_computerWin) % 2) == 0);
}
function isPlayerTurn() {
return(m_isPlayerTurn);
}
function isComputerTurn() {
return(!m_isPlayerTurn);
}
function setSmash(isSmash) {
m_isSmash = isSmash;
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
m_btnShowMcList = [];
switch (idx) {
case MENU_PLAY :
_local2 = m_mcPlayBase;
_local2.NextBtn.stop();
m_btnMcList.push({mc:_local2.NextBtn});
m_btnShowMcList.push(false);
break;
case MENU_START :
case MENU_INTERVAL :
case MENU_RESULT :
_local2 = m_mcPlayBase;
_local2.NextBtn.stop();
m_btnMcList.push({mc:_local2.NextBtn});
m_btnShowMcList.push(true);
}
}
function showMenu(isShow) {
var _local2;
var _local3;
_local2 = m_btnShowMcList.length - 1;
while (_local2 >= 0) {
_local3 = m_btnMcList[_local2];
if ((_local3.onmc != undefined) && (_local3.offmc != undefined)) {
_local3.onmc._visible = m_btnShowMcList[_local2] && (isShow);
_local3.offmc._visible = m_btnShowMcList[_local2] && (isShow);
} else {
_local3.mc._visible = m_btnShowMcList[_local2] && (isShow);
}
_local2--;
}
}
function selectMenu(idx) {
var _local2;
var _local3;
_local2 = m_btnShowMcList.length - 1;
while (_local2 >= 0) {
_local3 = m_btnMcList[_local2];
_local3.mc.bg.gotoAndStop(((_local2 == idx) ? 2 : 1));
_local2--;
}
}
function hitCheck(btnIdx, x, y) {
var _local2 = m_btnMcList[btnIdx];
return(m_btnShowMcList[btnIdx] && (hitCheckMC(_local2, x, y)));
}
function updateBtn(mc, rollmc, x, y) {
var _local2 = hitCheckMC(mc, x, y);
rollmc._visible = _local2;
return(_local2);
}
function hitCheckMC(mcb, x, y) {
if (((((mcb._x - (mcb._width / 2)) <= x) && ((mcb._x + (mcb._width / 2)) >= x)) && ((mcb._y - (mcb._height / 2)) <= y)) && ((mcb._y + (mcb._height / 2)) >= y)) {
return(true);
}
return(false);
}
function onKeyup() {
}
function onMouseDown() {
m_checkMouseClick = true;
}
function onMouseMove() {
m_checkMouseMove = true;
}
function onMouseUp() {
}
function onMouseWheel() {
}
function initCursor() {
m_mcCursor = undefined;
}
function createCursor() {
if (m_mcCursor != undefined) {
destroyCursor();
}
m_mcCursor = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CursorMC", "Cursor", m_context.getBase());
m_mcCursor._visible = false;
}
function destroyCursor() {
if (m_mcCursor != undefined) {
m_mcCursor.removeMovieClip();
m_mcCursor = undefined;
}
}
function showCursor(x, y) {
var _local2 = m_mcCursor;
_local2._x = (app.sys.Screen.WIDTH / 2) + x;
_local2._y = (app.sys.Screen.HEIGHT / 2) + y;
_local2._visible = true;
Mouse.hide();
}
function showCursor2(x, y) {
var _local2 = m_mcCursor;
_local2._x = x;
_local2._y = y;
_local2._visible = true;
Mouse.hide();
}
function hideCursor() {
var _local2 = m_mcCursor;
_local2._visible = false;
Mouse.show();
}
static var MD_INIT = 0;
static var MD_START = 10;
static var MD_START_WAIT = 11;
static var MD_COURT_IN = 20;
static var MD_COURT_IN_WAIT = 21;
static var MD_PLAY = 30;
static var MD_PLAY_WAIT = 31;
static var MD_COURT_OUT = 40;
static var MD_COURT_OUT_WAIT = 41;
static var MD_BOARD = 50;
static var MD_BOARD_WAIT = 51;
static var MD_PLAYERWIN = 60;
static var MD_PLAYERWIN_WAIT = 61;
static var MD_GAMEOVER = 70;
static var MD_GAMEOVER_WAIT = 71;
static var MD_GAMECLEAR = 80;
static var MD_GAMECLEAR_WAIT = 81;
static var MD_END = 999;
static var STATUS_NONE = 0;
static var STATUS_ADVANTAGE_COMPUTER = 1;
static var STATUS_ADVANTAGE_PLAYER = 2;
static var STATUS_BREAK_POINT = 3;
static var STATUS_DEUCE = 4;
static var STATUS_DOUBLE_FAULT = 5;
static var STATUS_FAULT = 6;
static var STATUS_GAME_COMPUTER = 7;
static var STATUS_GAME_PLAYER = 8;
static var STATUS_LET = 9;
static var STATUS_MATCH_POINT = 10;
static var STATUS_POINT = 11;
static var CD_TIME = 3000;
static var GOAL_TIME = 2000;
static var FADE_TIME = 500;
static var RESULT_NONE = 0;
static var RESULT_GAMEPLAYER = 1;
static var RESULT_GAMECOMPUTER = 2;
static var RESULT_PLAYERWIN = 3;
static var RESULT_GAMEOVER = 4;
static var RESULT_GAMECLEAR = 5;
static var POSRATE_BOARD = 0;
static var POSRATE_COURT = 100;
var MENU_PLAY = 1;
var MENU_START = 2;
var MENU_INTERVAL = 3;
var MENU_RESULT = 4;
var BOARD_SLIDE_TIME = 1000;
static var GM_INIT = 0;
static var GM_START = 10;
static var GM_SERVE = 20;
static var GM_SERVE_WAIT = 21;
static var GM_FAULT = 30;
static var GM_DOUBLE_FAULT = 31;
static var GM_RALLY_PLAYER = 40;
static var GM_RALLY_PLAYER_WAIT = 41;
static var GM_RALLY_COMPUTER = 42;
static var GM_RALLY_COMPUTER_WAIT = 43;
static var GM_RALLY_WAIT = 44;
static var GM_POINT_PLAYER = 50;
static var GM_POINT_COMPUTER = 51;
static var GM_POINT = 52;
static var GM_GAME_PLAYER = 60;
static var GM_GAME_COMPUTER = 61;
static var GM_RESULT = 70;
static var GM_RESULT_WAIT = 71;
static var GAMESTATUS_DISP_TIME = 1000;
static var INFO_UPDATE_TIME = 4000;
static var INFO_UPDATE_TIME_FULL = 3000;
}
Symbol 1576 MovieClip [__Packages.app.enemy.ScoreBoard] Frame 0
class app.enemy.ScoreBoard extends app.enemy.Enemy
{
var m_mc, m_mcLogo, m_mcLogoMedal, m_mcBanner, m_playerWin, m_computerWin, m_smashPoint, m_maxSpeed, m_playTime, m_score, m_result, m_isMedal, m_isVisible, m_isUpdate, m_wl, m_context;
function ScoreBoard (context, parentMC) {
super(context);
m_mc = util.MovieClipFactory.createOnMc(parentMC, "ScoreBoardMC", "ScoreBoard");
m_mc._x = app.sys.Screen.WIDTH / 2;
m_mc._y = app.sys.Screen.HEIGHT / 2;
m_mc._visible = false;
m_mc.Board.CPU.gotoAndStop(app.sys.SysInfo.getStageNum());
m_mcLogo = util.MovieClipFactory.createEmptyOnMc(m_mc.Board.Logo);
m_mcLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_BOARD], 2);
m_mcLogo._visible = true;
m_mcLogoMedal = util.MovieClipFactory.createEmptyOnMc(m_mc.Medal.Logo);
m_mcLogoMedal.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_MEDAL], 2);
m_mcLogoMedal._xscale = (m_mcLogoMedal._yscale = 50);
m_mcLogoMedal._x = (-m_mcLogoMedal._width) / 2;
m_mcLogoMedal._visible = true;
m_mcBanner = util.MovieClipFactory.createEmptyOnMc(m_mc.Board.Banner);
m_mcBanner.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__BannerBitmap(), 2);
m_mcBanner._visible = true;
m_playerWin = 0;
m_computerWin = 0;
m_smashPoint = 0;
m_maxSpeed = 0;
m_playTime = 0;
m_score = 0;
m_result = 0;
m_isMedal = false;
m_isVisible = false;
m_isUpdate = true;
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
if (m_isUpdate) {
var _local3;
var _local4;
var _local2;
_local3 = m_mc.Board;
_local3.SmashPoint.text = Math.floor(m_smashPoint);
_local3.MaxSpeed.text = Math.floor(m_maxSpeed);
_local4 = m_playTime;
if (_local4 > 5999999) {
_local4 = 5999999 /* 0x5B8D7F */;
}
_local3.TimeMin.text = Math.floor(_local4 / 60000);
_local3.TimeSec.text = Math.floor(Math.floor(_local4 / 1000) % 60);
_local3.Score.text = Math.floor(m_score);
_local2 = 1;
while (_local2 <= app.sys.Param.GAME_MAX) {
_local3["P" + _local2]._visible = m_playerWin >= _local2;
_local3["C" + _local2]._visible = m_computerWin >= _local2;
_local2++;
}
_local3 = m_mc;
if (m_result > 0) {
_local3.Status.gotoAndStop(m_result);
_local3.Status._visible = true;
} else {
_local3.Status.stop();
_local3.Status._visible = false;
}
_local3.Medal._visible = m_isMedal;
m_mc._visible = m_isVisible;
m_isUpdate = false;
}
}
function destroy() {
m_mcBanner.removeMovieClip();
m_mcLogo.removeMovieClip();
m_mcLogoMedal.removeMovieClip();
m_mc.removeMovieClip();
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
}
function setWinCount(playerWin, computerWin) {
m_playerWin = playerWin;
m_computerWin = computerWin;
}
function setSmashPoint(smashPoint) {
m_smashPoint = smashPoint;
}
function setMaxSpeed(maxSpeed) {
m_maxSpeed = maxSpeed;
}
function setPlayTime(playTime) {
m_playTime = playTime;
}
function setScore(score) {
m_score = score;
}
function setResult(result) {
m_result = result;
}
function setShowMedal(isShow) {
m_isMedal = isShow;
}
function setVisible(isShow) {
m_isVisible = isShow;
}
function setUpdate() {
m_isUpdate = true;
}
}
Symbol 1577 MovieClip [__Packages.util.Quality] Frame 0
class util.Quality
{
function Quality () {
}
static function setHigh() {
_root._quality = "High";
}
static function setMedium() {
_root._quality = "MEDIUM";
}
static function setLow() {
_root._quality = "Low";
}
}
Symbol 1578 MovieClip [__Packages.app.sys.SysInfo] Frame 0
class app.sys.SysInfo
{
static var m_isPause, m_isMatchPause, m_isMatchPauseNext, m_isPauseKeyDown, m_mcPause, m_isStart, m_perRate, m_frameRate, m_nowStage, m_lastStage, m_scoreStage, m_scoreTotal, m_bgmID;
function SysInfo () {
}
static function initFirst() {
Option.load();
setStart(false);
m_isPause = false;
m_isMatchPause = false;
m_isMatchPauseNext = false;
setBgmID(-1);
}
static function initGame() {
clearScore();
initStageNum();
}
static function continueGameLoop() {
clearScore();
}
static function initStage() {
MatchInfo.__set__CourtInfo(app.data.StageInfo.getInfo(getStageNum()));
clearStageScore();
setMatchPause(false);
}
static function clearStage() {
incStageNum();
updateScore();
}
static function endGame() {
saveStageNum();
Option.save();
}
static function clearGame() {
Option.save();
}
static function reset() {
}
static function move() {
checkPause();
if (!isPause()) {
updateMatchPause();
if (isStart()) {
if (!isMatchPause()) {
}
}
}
}
static function disp() {
}
static function checkPause() {
if (isStart()) {
var _local1 = Key.isDown(13);
if ((m_isPauseKeyDown ^ _local1) & (!m_isPauseKeyDown)) {
m_isPause = !m_isPause;
if (m_mcPause != undefined) {
m_mcPause.removeMovieClip();
m_mcPause = undefined;
}
if (m_isPause) {
m_mcPause = util.MovieClipFactory.create(app.sys.Screen.OT_SYSTEM, "PauseMC", "Pause");
m_mcPause._x = app.sys.Screen.WIDTH / 2;
m_mcPause._y = app.sys.Screen.HEIGHT / 2;
m_mcPause._visible = true;
}
}
m_isPauseKeyDown = _local1;
}
}
static function isPause() {
return(m_isPause);
}
static function isStart() {
return(m_isStart);
}
static function setStart(flag) {
m_isStart = flag;
}
static function getRate() {
return(m_perRate);
}
static function getFrameRate() {
return(m_frameRate);
}
static function getSpeed() {
return(getRate());
}
static function setFrameRate(rate) {
m_frameRate = rate;
m_perRate = 1000 / rate;
}
static function roundRate(val) {
var _local1 = m_perRate;
return(Math.round(val / _local1) * _local1);
}
static function initStageNum() {
m_nowStage = 1;
m_lastStage = -1;
}
static function getStageNum() {
return(m_nowStage);
}
static function incStageNum() {
m_nowStage++;
}
static function continueStageNum() {
m_nowStage = m_lastStage;
}
static function saveStageNum() {
m_lastStage = m_nowStage;
}
static function isLastStage() {
return(m_nowStage >= STAGE_MAX);
}
static function setMatchPause(isPause) {
m_isMatchPauseNext = isPause;
}
static function isMatchPause() {
return(m_isMatchPause);
}
static function updateMatchPause() {
if (m_isMatchPause != m_isMatchPauseNext) {
m_isMatchPause = m_isMatchPauseNext;
}
}
static function setScore(score) {
m_scoreStage = score;
}
static function addScore(score) {
m_scoreStage = m_scoreStage + score;
}
static function getScore() {
return(m_scoreTotal + m_scoreStage);
}
static function getStageScore() {
return(m_scoreStage);
}
static function clearScore() {
m_scoreTotal = 0;
m_scoreStage = 0;
}
static function clearStageScore() {
m_scoreStage = 0;
}
static function updateScore() {
m_scoreTotal = m_scoreTotal + m_scoreStage;
m_scoreStage = 0;
}
static function getBgmID() {
return(m_bgmID);
}
static function setBgmID(bgmID) {
m_bgmID = bgmID;
}
static function updateAttr() {
m_attr++;
m_WorkList.setAttr(m_attr);
}
static function getAttr() {
return(m_attr);
}
static function get WorkList() {
return(m_WorkList);
}
static function get SceneGraph() {
return(m_SceneGraph);
}
static function get Debug() {
return(m_Debug);
}
static function get SoundManager() {
return(m_SoundManager);
}
static function get Option() {
return(m_Option);
}
static function get GameMode() {
return(m_GameMode);
}
static function get Collision() {
return(m_Collision);
}
static function get MatchInfo() {
return(m_MatchInfo);
}
static var m_WorkList = new sys.WorkList();
static var m_SceneGraph = new app.sys.SceneGraph();
static var m_Debug = new app.sys.Debug();
static var m_SoundManager = new sys.SoundManager();
static var m_Option = new app.sys.Option();
static var m_GameMode = new app.sys.GameMode();
static var m_Collision = new app.sys.Collision();
static var m_MatchInfo = new app.sys.MatchInfo();
static var m_attr = 0;
static var STAGE_MAX = 4;
}
Symbol 1579 MovieClip [__Packages.app.data.StageInfo] Frame 0
class app.data.StageInfo
{
function StageInfo () {
}
static function getInfo(stageNo) {
var _local1;
switch (stageNo) {
case 1 :
_local1 = app.data.Stage_1.getInfo();
break;
case 2 :
_local1 = app.data.Stage_2.getInfo();
break;
case 3 :
_local1 = app.data.Stage_3.getInfo();
break;
case 4 :
_local1 = app.data.Stage_4.getInfo();
break;
}
return(_local1);
}
}
Symbol 1580 MovieClip [__Packages.app.data.Stage_1] Frame 0
class app.data.Stage_1
{
function Stage_1 () {
}
static function getInfo() {
return(m_data);
}
static var m_data = {CourtParam:{BoundRate:0.7, SpeedRate:0.6}, CpuParam:{ServePowerBase:0.6, ServePowerRandom:0.2, ServeMove:0.2, ServeRange:0.2, ShotReverse:0.2, ShotReversePowerBase:0.2, ShotReversePowerRandom:0.1, ShotRob:0.5, ShotBackCenter:0.2, ShotForward:0.2, ShotReactionTime:150, End:0}, Item:[false, false, false, false, false, false, false, false, false, false, false, false, true], End:[]};
}
Symbol 1581 MovieClip [__Packages.app.data.Stage_2] Frame 0
class app.data.Stage_2
{
function Stage_2 () {
}
static function getInfo() {
return(m_data);
}
static var m_data = {CourtParam:{BoundRate:0.75, SpeedRate:0.75}, CpuParam:{ServePowerBase:0.65, ServePowerRandom:0.2, ServeMove:0.4, ServeRange:0.4, ShotReverse:0.5, ShotReversePowerBase:0.3, ShotReversePowerRandom:0.1, ShotRob:0.5, ShotBackCenter:0.4, ShotForward:0.3, ShotReactionTime:100, End:0}, Item:[true, true, true, true, true, true, false, false, true, true, true, true, true], End:[]};
}
Symbol 1582 MovieClip [__Packages.app.data.Stage_3] Frame 0
class app.data.Stage_3
{
function Stage_3 () {
}
static function getInfo() {
return(m_data);
}
static var m_data = {CourtParam:{BoundRate:0.9, SpeedRate:0.7}, CpuParam:{ServePowerBase:0.7, ServePowerRandom:0.2, ServeMove:0.6, ServeRange:0.6, ShotReverse:0.8, ShotReversePowerBase:0.6, ShotReversePowerRandom:0.3, ShotRob:0.5, ShotBackCenter:0.6, ShotForward:0.4, ShotReactionTime:50, End:0}, Item:[true, true, true, true, true, true, false, true, true, true, true, true, true], End:[]};
}
Symbol 1583 MovieClip [__Packages.app.data.Stage_4] Frame 0
class app.data.Stage_4
{
function Stage_4 () {
}
static function getInfo() {
return(m_data);
}
static var m_data = {CourtParam:{BoundRate:0.8, SpeedRate:0.8}, CpuParam:{ServePowerBase:0.8, ServePowerRandom:0.2, ServeMove:0.8, ServeRange:0.8, ShotReverse:0.9, ShotReversePowerBase:0.8, ShotReversePowerRandom:0.2, ShotRob:0.5, ShotBackCenter:0.9, ShotForward:0.5, ShotReactionTime:0, End:0}, Item:[true, true, true, true, true, true, false, true, true, true, true, true, true], End:[]};
}
Symbol 1584 MovieClip [__Packages.sys.FpsManager] Frame 0
class sys.FpsManager
{
var m_fps, m_lastTime, m_pause, m_resetFlag;
function FpsManager (fps) {
m_fps = fps;
m_lastTime = getTimer();
m_pause = false;
m_resetFlag = false;
}
function getLoopCount() {
var _local3;
var _local4;
var _local2;
_local3 = getTimer();
_local4 = _local3 - m_lastTime;
if ((!m_resetFlag) && (_local4 >= (1000 / m_fps))) {
_local2 = Math.floor(_local4 / (1000 / m_fps));
} else {
_local2 = 1;
}
if (_local2 > 4) {
_local2 = 4;
m_lastTime = _local3;
} else {
m_lastTime = m_lastTime + ((1000 / m_fps) * _local2);
if (Math.abs(m_lastTime - _local3) < ((1000 / m_fps) / 10)) {
m_lastTime = _local3;
}
}
if (m_resetFlag) {
m_lastTime = _local3;
m_resetFlag = false;
}
return(_local2);
}
function pause() {
if (m_pause) {
m_lastTime = getTimer();
}
m_pause = !m_pause;
}
function isPause() {
return(m_pause);
}
function reset() {
m_resetFlag = true;
}
}
Symbol 1585 MovieClip [__Packages.app.data.SoundResource] Frame 0
class app.data.SoundResource
{
function SoundResource () {
}
static function getSoundData() {
return(SoundData);
}
static var SoundData = {Out:[{id:"SE_Out", vol:100, loop:1}], ShotPowerful:[{id:"SE_ShotPowerful", vol:100, loop:1}], ShotWeak:[{id:"SE_ShotWeak", vol:100, loop:1}], ShotNormal:[{id:"SE_ShotNormal", vol:100, loop:1}], SmashFinish:[{id:"SE_SmashFinish", vol:100, loop:1}], Net:[{id:"SE_Net", vol:100, loop:1}], Bound:[{id:"SE_Bound", vol:100, loop:1}], BoundPowerful:[{id:"SE_BoundPowerful", vol:100, loop:1}], Win:[{id:"SE_Win", vol:100, loop:1}], Point:[{id:"SE_Point", vol:100, loop:1}], OK:[{id:"SE_OK", vol:100, loop:1}], HandBound:[{id:"SE_HandBound", vol:100, loop:1}], Swing:[{id:"SE_Swing", vol:30, loop:1}], RunRight:[{id:"SE_RunRight", vol:30, loop:1}], RunLeft:[{id:"SE_RunLeft", vol:30, loop:1}], Jump:[{id:"SE_Jump", vol:100, loop:1}], Title:[{id:"BGM_Title", vol:100, loop:1}, {id:"BGM_Tournament", vol:100, loop:0}], Tournament:[{id:"BGM_Interlude", vol:100, loop:1}, {id:"BGM_Tournament", vol:100, loop:0}], End:[]};
}
Symbol 1586 MovieClip [__Packages.app.sys.FPS] Frame 0
class app.sys.FPS
{
var m_lastSec, m_count, m_dispCount, m_mc, m_wl;
function FPS (x, y) {
m_lastSec = Math.floor(getTimer() / 1000);
m_count = 1;
m_dispCount = 1;
m_mc = util.MovieClipFactory.create(app.sys.Screen.OT_UTIL, "FPSMC", "FPS");
m_wl = app.sys.SysInfo.__get__WorkList().append(this);
m_mc._x = x;
m_mc._y = y;
m_mc._visible = true;
m_mc.fps = 0;
}
function move() {
var _local2 = Math.floor(getTimer() / 1000);
if (_local2 == m_lastSec) {
m_count++;
} else {
m_mc.fps = ((m_count + "(") + m_dispCount) + ")";
m_lastSec = _local2;
m_count = 1;
m_dispCount = 0;
}
return(true);
}
function ctrl() {
return(true);
}
function disp() {
m_dispCount++;
m_mc._visible = true;
}
function destroy() {
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
m_mc.removeMovieClip();
}
}
Symbol 1587 MovieClip [__Packages.app.flow.LogoLoadFlow] Frame 0
class app.flow.LogoLoadFlow extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function LogoLoadFlow (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.__get__SceneGraph().init(m_context);
app.sys.SysInfo.__get__SceneGraph().addListener(this);
app.sys.SysInfo.__get__SceneGraph().setScene([]);
util.Quality.setHigh();
util.MovieClipFactory.setHighDepth(false);
new app.loop.LogoLoadLoop(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.__get__WorkList().callMove();
app.sys.SysInfo.__get__WorkList().callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.__get__WorkList().callDisp();
}
function destroy() {
app.sys.SysInfo.__get__SceneGraph().removeListener(this);
app.sys.SysInfo.__get__SceneGraph().destroy();
app.sys.SysInfo.__get__WorkList().callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_NEXT) {
m_result = eventID;
}
}
}
Symbol 1588 MovieClip [__Packages.app.loop.LogoLoadLoop] Frame 0
class app.loop.LogoLoadLoop extends app.loop.Loop
{
var m_mode, m_isLoaded, m_wl, m_context, m_mc, m_mcLogo;
function LogoLoadLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
m_mode = MD_START;
m_isLoaded = false;
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
}
function move() {
var _local6;
do {
_local6 = false;
switch (m_mode) {
case MD_START :
m_mc = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "DummyMC", "Dummy", m_context.getBase());
m_mc._x = 0;
m_mc._y = 0;
m_mc.gotoAndStop(1);
m_mc._visible = false;
m_mcLogo = util.MovieClipFactory.createOnMc(m_mc, "Ad_Sponsor", "Ad");
m_mcLogo._x = 0;
m_mcLogo._y = 0;
m_mcLogo.gotoAndStop(1);
m_mcLogo._visible = true;
m_mode = MD_LOAD_WAIT;
_local6 = true;
break;
case MD_LOAD_WAIT :
var _local7;
var _local3;
var _local4;
var _local5;
_local5 = [];
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_TOURNAMENT_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_TOURNAMENT_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_TOURNAMENT_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 43, 69, 138, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_WALL_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_WALL_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_WALL_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 255, 255, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_BOARD_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_BOARD_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_BOARD_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 255, 255, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_BAR_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_BAR_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_BAR_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 255, 255, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_TITLE_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_TITLE_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_TITLE_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 255, 255, 255, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_MEDAL_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_MEDAL_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_MEDAL_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
_local7.draw(m_mc);
_local5.push(_local7);
_local3 = Math.round(((app.sys.Param.LOGO_WIDTH * app.sys.Param.LOGO_DIAGRAM_SCALE) / 100) + 0.5);
_local4 = Math.round(((app.sys.Param.LOGO_HEIGHT * app.sys.Param.LOGO_DIAGRAM_SCALE) / 100) + 0.5);
_local7 = new flash.display.BitmapData(_local3, _local4, true, 0);
m_mcLogo._xscale = (m_mcLogo._yscale = app.sys.Param.LOGO_DIAGRAM_SCALE);
m_mcLogo.transform.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
_local7.draw(m_mc);
_local5.push(_local7);
app.sys.SysInfo.__get__MatchInfo().__set__LogoBitmapList(_local5);
m_mcLogo.removeMovieClip();
m_mode = MD_BANNER;
_local6 = true;
break;
case MD_BANNER :
m_mcLogo = util.MovieClipFactory.createOnMc(m_mc, "Ad_Banner", "Ad");
m_mcLogo._x = 0;
m_mcLogo._y = 0;
m_mcLogo.gotoAndStop(1);
m_mcLogo._visible = true;
m_mode = MD_BANNER_WAIT;
_local6 = true;
break;
case MD_BANNER_WAIT :
_local7 = new flash.display.BitmapData(m_mcLogo._width, m_mcLogo._height, false, 0);
_local7.draw(m_mc);
app.sys.SysInfo.__get__MatchInfo().__set__BannerBitmap(_local7);
m_mode = MD_END;
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
break;
case MD_END :
}
} while (_local6);
return(super.move());
}
function disp() {
super.disp();
}
function destroy() {
m_mcLogo.removeMovieClip();
m_mc.removeMovieClip();
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
super.destroy();
}
static var MD_START = 0;
static var MD_LOAD_WAIT = 11;
static var MD_BANNER = 20;
static var MD_BANNER_WAIT = 21;
static var MD_END = 99;
}
Symbol 1589 MovieClip [__Packages.app.enemy.Bar] Frame 0
class app.enemy.Bar extends app.enemy.Enemy
{
var m_mc, m_mcLogo, m_wl;
function Bar () {
super();
m_mc = util.MovieClipFactory.create(app.sys.Screen.OT_SYSTEM, "BarMC", "FPS");
m_mc._x = app.sys.Screen.WIDTH / 2;
m_mc._y = app.sys.Screen.HEIGHT / 2;
m_mc._visible = true;
m_mcLogo = util.MovieClipFactory.createEmptyOnMc(m_mc.Bar.Logo);
m_mcLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_BAR], 2);
m_mcLogo._visible = true;
m_wl = app.sys.SysInfo.__get__WorkList().append(this);
}
function move() {
return(true);
}
function ctrl() {
return(true);
}
function disp() {
}
function destroy() {
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
m_mcLogo.removeMovieClip();
m_mc.removeMovieClip();
}
}
Symbol 1590 MovieClip [__Packages.app.flow.TitleFlow] Frame 0
class app.flow.TitleFlow extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function TitleFlow (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.__get__SceneGraph().init(m_context);
app.sys.SysInfo.__get__SceneGraph().addListener(this);
app.sys.SysInfo.__get__SceneGraph().setScene([]);
util.Quality.setHigh();
util.MovieClipFactory.setHighDepth(false);
new app.loop.TitleLoop(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.__get__WorkList().callMove();
app.sys.SysInfo.__get__WorkList().callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.__get__WorkList().callDisp();
}
function destroy() {
app.sys.SysInfo.__get__WorkList().callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_NEXT) {
m_result = eventID;
}
}
}
Symbol 1591 MovieClip [__Packages.app.loop.BaseLoop] Frame 0
class app.loop.BaseLoop extends app.loop.Loop
{
var m_wl, m_context, m_checkMouseClick, m_checkMouseMove, m_btnShowMcList, m_btnMcList, m_mcCursor;
function BaseLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
initCursor();
Mouse.addListener(this);
m_wl = app.sys.SysInfo.__get__WorkList().appendWithAttr(this, m_context.getAttr());
m_checkMouseClick = false;
m_checkMouseMove = false;
}
function move() {
m_checkMouseClick = false;
m_checkMouseMove = false;
return(super.move());
}
function disp() {
super.disp();
}
function destroy() {
destroyCursor();
Mouse.removeListener(this);
app.sys.SysInfo.__get__WorkList().cut(m_wl);
delete m_wl;
super.destroy();
}
function showMenu(isShow) {
var _local2;
var _local3;
_local2 = m_btnShowMcList.length - 1;
while (_local2 >= 0) {
_local3 = m_btnMcList[_local2];
if ((_local3.onmc != undefined) && (_local3.offmc != undefined)) {
_local3.onmc._visible = m_btnShowMcList[_local2] && (isShow);
_local3.offmc._visible = m_btnShowMcList[_local2] && (isShow);
} else {
_local3.mc._visible = m_btnShowMcList[_local2] && (isShow);
}
_local2--;
}
}
function selectMenu(idx) {
var _local2;
var _local3;
_local2 = m_btnShowMcList.length - 1;
while (_local2 >= 0) {
_local3 = m_btnMcList[_local2];
_local3.mc.bg.gotoAndStop(((_local2 == idx) ? 2 : 1));
_local2--;
}
}
function hitCheck(btnIdx, x, y) {
var _local2 = m_btnMcList[btnIdx];
return(m_btnShowMcList[btnIdx] && (hitCheckMC(_local2, x, y)));
}
function updateBtn(mc, rollmc, x, y) {
var _local2 = hitCheckMC(mc, x, y);
rollmc._visible = _local2;
return(_local2);
}
function hitCheckMC(mcb, x, y) {
if (((((mcb._x - (mcb._width / 2)) <= x) && ((mcb._x + (mcb._width / 2)) >= x)) && ((mcb._y - (mcb._height / 2)) <= y)) && ((mcb._y + (mcb._height / 2)) >= y)) {
return(true);
}
return(false);
}
function onKeyup() {
}
function onMouseDown() {
m_checkMouseClick = true;
}
function onMouseMove() {
m_checkMouseMove = true;
}
function onMouseUp() {
}
function onMouseWheel() {
}
function initCursor() {
m_mcCursor = undefined;
}
function createCursor() {
if (m_mcCursor != undefined) {
destroyCursor();
}
m_mcCursor = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_STATUS, "CursorMC", "Cursor", m_context.getBase());
m_mcCursor._visible = false;
}
function destroyCursor() {
if (m_mcCursor != undefined) {
m_mcCursor.removeMovieClip();
m_mcCursor = undefined;
}
}
function showCursor(x, y) {
var _local2 = m_mcCursor;
_local2._x = (app.sys.Screen.WIDTH / 2) + x;
_local2._y = (app.sys.Screen.HEIGHT / 2) + y;
_local2._visible = true;
Mouse.hide();
}
function showCursor2(x, y) {
var _local2 = m_mcCursor;
_local2._x = x;
_local2._y = y;
_local2._visible = true;
Mouse.hide();
}
function hideCursor() {
var _local2 = m_mcCursor;
_local2._visible = false;
Mouse.show();
}
}
Symbol 1592 MovieClip [__Packages.app.loop.TitleLoop] Frame 0
class app.loop.TitleLoop extends app.loop.BaseLoop
{
var m_mode, m_mainMenuIdx, m_mcMenu, m_context, m_mcLogo, createCursor, m_curMenuIdx, m_isShowMenu, m_isBackUpdate, m_isMenuUpdate, m_isSelectUpdate, m_checkMouseMove, hideCursor, destroyCursor, m_checkMouseClick, m_btnMcList, m_btnShowMcList, hitCheckMC, showCursor, showMenu, selectMenu;
function TitleLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
m_mode = MD_START;
}
function move() {
var _local3;
do {
_local3 = false;
switch (m_mode) {
case MD_START :
m_mainMenuIdx = TITLE_START;
m_mcMenu = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "TitleMC", "Title", m_context.getBase());
m_mcMenu._x = app.sys.Screen.WIDTH / 2;
m_mcMenu._y = app.sys.Screen.HEIGHT / 2;
m_mcMenu.gotoAndStop(1);
m_mcMenu._visible = true;
m_mcLogo = util.MovieClipFactory.createEmptyOnMc(m_mcMenu.Logo);
m_mcLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_TITLE], 2);
m_mcLogo._x = (-m_mcLogo._width) / 2;
m_mcLogo._visible = true;
app.sys.SysInfo.__get__SoundManager().playBGM("Title");
m_mode = MD_MAIN_ACT;
_local3 = true;
break;
case MD_MAIN_ACT :
createCursor();
m_curMenuIdx = MENU_MAIN;
initMenu(m_curMenuIdx);
m_isShowMenu = true;
m_isBackUpdate = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_MAIN_ACT_WAIT;
_local3 = true;
break;
case MD_MAIN_ACT_WAIT :
var _local4 = m_mainMenuIdx;
if (moveMain()) {
if (!(m_mainMenuIdx === TITLE_START)) {
} else {
hideCursor();
destroyCursor();
m_mode = MD_END;
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
app.sys.SysInfo.__get__SoundManager().playSE("OK");
app.sys.SysInfo.__get__SoundManager().stopBGM();
}
}
if (_local4 == m_mainMenuIdx) {
break;
}
m_isSelectUpdate = true;
}
} while (_local3);
m_checkMouseClick = false;
m_checkMouseMove = false;
return(super.move());
}
function moveMain() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcMenu._xmouse;
_local3 = m_mcMenu._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (m_btnShowMcList[_local2] && (hitCheckMC(m_btnMcList[_local2].mc, _local4, _local3))) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.__get__SoundManager().playSE("SelectMenu");
} else if (m_mainMenuIdx != _local5) {
app.sys.SysInfo.__get__SoundManager().playSE("MoveMenu");
}
m_mainMenuIdx = _local5;
} else {
m_mainMenuIdx = -1;
hideCursor();
}
}
return(_local6 != -1);
}
function disp() {
var _local3;
if (!(m_curMenuIdx === MENU_MAIN)) {
} else {
if (m_isBackUpdate) {
m_isBackUpdate = false;
}
if (m_isMenuUpdate) {
showMenu(m_isShowMenu);
m_isMenuUpdate = false;
}
if (m_isSelectUpdate) {
selectMenu(m_mainMenuIdx);
m_isSelectUpdate = false;
}
}
super.disp();
}
function destroy() {
m_mcLogo.removeMovieClip();
m_mcMenu.removeMovieClip();
super.destroy();
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
m_btnShowMcList = [];
if (!(idx === MENU_MAIN)) {
} else {
_local2 = m_mcMenu;
_local2.StartBtn.stop();
m_btnMcList.push({mc:_local2.StartBtn});
m_btnShowMcList.push(true);
}
}
static var MD_START = 0;
static var MD_MAIN_ACT = 12;
static var MD_MAIN_ACT_WAIT = 13;
static var MD_END = 99;
static var MENU_MAIN = 0;
static var TITLE_START = 0;
}
Symbol 1593 MovieClip [__Packages.app.flow.TournamentFlow] Frame 0
class app.flow.TournamentFlow extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function TournamentFlow (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.__get__SceneGraph().init(m_context);
app.sys.SysInfo.__get__SceneGraph().addListener(this);
app.sys.SysInfo.__get__SceneGraph().setScene([]);
util.Quality.setHigh();
util.MovieClipFactory.setHighDepth(false);
new app.loop.TournamentLoop(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.__get__WorkList().callMove();
app.sys.SysInfo.__get__WorkList().callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.__get__WorkList().callDisp();
}
function destroy() {
app.sys.SysInfo.__get__WorkList().callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_NEXT) {
m_result = eventID;
}
}
}
Symbol 1594 MovieClip [__Packages.app.loop.TournamentLoop] Frame 0
class app.loop.TournamentLoop extends app.loop.BaseLoop
{
var m_mode, m_mainMenuIdx, m_mcMenu, m_context, m_mcLogo, createCursor, m_curMenuIdx, m_isShowMenu, m_isBackUpdate, m_isMenuUpdate, m_isSelectUpdate, m_checkMouseMove, hideCursor, destroyCursor, m_checkMouseClick, m_btnMcList, m_btnShowMcList, hitCheckMC, showCursor, showMenu, selectMenu;
function TournamentLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
m_mode = MD_START;
}
function move() {
var _local4;
do {
_local4 = false;
switch (m_mode) {
case MD_START :
var _local3;
m_mainMenuIdx = TOURNAMENT_START;
m_mcMenu = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "TournamentMC", "Tournament", m_context.getBase());
m_mcMenu._x = app.sys.Screen.WIDTH / 2;
m_mcMenu._y = app.sys.Screen.HEIGHT / 2;
m_mcMenu.gotoAndStop(1);
m_mcMenu._visible = true;
m_mcLogo = util.MovieClipFactory.createEmptyOnMc(m_mcMenu.Logo, "Logo");
m_mcLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_DIAGRAM], 2);
m_mcLogo._xscale = (m_mcLogo._yscale = 100);
m_mcLogo._x = (-m_mcLogo._width) / 2;
m_mcLogo._visible = true;
_local3 = app.sys.SysInfo.getBgmID();
if (_local3 == -1) {
_local3 = app.sys.SysInfo.__get__SoundManager().playBGM("Tournament");
app.sys.SysInfo.setBgmID(_local3);
}
m_mode = MD_MAIN_ACT;
_local4 = true;
break;
case MD_MAIN_ACT :
createCursor();
m_curMenuIdx = MENU_MAIN;
initMenu(m_curMenuIdx);
m_isShowMenu = true;
m_isBackUpdate = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_MAIN_ACT_WAIT;
_local4 = true;
break;
case MD_MAIN_ACT_WAIT :
var _local5 = m_mainMenuIdx;
if (moveMain()) {
if (!(m_mainMenuIdx === TOURNAMENT_START)) {
} else {
hideCursor();
destroyCursor();
m_mode = MD_END;
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
app.sys.SysInfo.__get__SoundManager().playSE("OK");
}
}
if (_local5 == m_mainMenuIdx) {
break;
}
m_isSelectUpdate = true;
}
} while (_local4);
m_checkMouseClick = false;
m_checkMouseMove = false;
return(super.move());
}
function moveMain() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcMenu._xmouse;
_local3 = m_mcMenu._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (m_btnShowMcList[_local2] && (hitCheckMC(m_btnMcList[_local2].mc, _local4, _local3))) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.__get__SoundManager().playSE("SelectMenu");
} else if (m_mainMenuIdx != _local5) {
app.sys.SysInfo.__get__SoundManager().playSE("MoveMenu");
}
m_mainMenuIdx = _local5;
} else {
m_mainMenuIdx = -1;
hideCursor();
}
}
return(_local6 != -1);
}
function disp() {
var _local3;
if (!(m_curMenuIdx === MENU_MAIN)) {
} else {
if (m_isBackUpdate) {
var _local4;
_local3 = m_mcMenu;
_local4 = app.sys.SysInfo.getStageNum();
_local3.Tournament.gotoAndStop(_local4 - 1);
m_isBackUpdate = false;
}
if (m_isMenuUpdate) {
showMenu(m_isShowMenu);
m_isMenuUpdate = false;
}
if (m_isSelectUpdate) {
selectMenu(m_mainMenuIdx);
m_isSelectUpdate = false;
}
}
super.disp();
}
function destroy() {
m_mcLogo.removeMovieClip();
m_mcMenu.removeMovieClip();
super.destroy();
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
m_btnShowMcList = [];
if (!(idx === MENU_MAIN)) {
} else {
_local2 = m_mcMenu;
_local2.StartBtn.stop();
m_btnMcList.push({mc:_local2.NextBtn});
m_btnShowMcList.push(true);
}
}
static var MD_START = 0;
static var MD_MAIN_ACT = 12;
static var MD_MAIN_ACT_WAIT = 13;
static var MD_END = 99;
static var MENU_MAIN = 0;
static var TOURNAMENT_START = 0;
}
Symbol 1595 MovieClip [__Packages.app.flow.StageTitleFlow] Frame 0
class app.flow.StageTitleFlow extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function StageTitleFlow (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.__get__SceneGraph().init(m_context);
app.sys.SysInfo.__get__SceneGraph().addListener(this);
app.sys.SysInfo.__get__SceneGraph().setScene([]);
util.Quality.setHigh();
util.MovieClipFactory.setHighDepth(false);
new app.loop.StageTitleLoop(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.__get__WorkList().callMove();
app.sys.SysInfo.__get__WorkList().callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.__get__WorkList().callDisp();
}
function destroy() {
app.sys.SysInfo.__get__WorkList().callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (eventID == app.sys.SceneGraph.EID_FLOW_NEXT) {
m_result = eventID;
}
}
}
Symbol 1596 MovieClip [__Packages.app.loop.StageTitleLoop] Frame 0
class app.loop.StageTitleLoop extends app.loop.BaseLoop
{
var m_mode, m_mainMenuIdx, m_mcMenu, m_context, m_mcLogo, createCursor, m_curMenuIdx, m_isShowMenu, m_isBackUpdate, m_isMenuUpdate, m_isSelectUpdate, m_checkMouseMove, hideCursor, destroyCursor, m_checkMouseClick, m_btnMcList, m_btnShowMcList, hitCheckMC, showCursor, showMenu, selectMenu;
function StageTitleLoop (context, nowFlow, preFlow) {
super(context, nowFlow, preFlow);
m_mode = MD_START;
}
function move() {
var _local4;
do {
_local4 = false;
switch (m_mode) {
case MD_START :
var _local3;
m_mainMenuIdx = STAGETITLE_START;
m_mcMenu = util.MovieClipFactory.createWithBase(app.sys.Screen.OT_BACKGROUND, "StageTitleMC", "Title", m_context.getBase());
m_mcMenu._x = app.sys.Screen.WIDTH / 2;
m_mcMenu._y = app.sys.Screen.HEIGHT / 2;
m_mcMenu.gotoAndStop(1);
m_mcMenu._visible = true;
m_mcLogo = util.MovieClipFactory.createEmptyOnMc(m_mcMenu.Logo, "Logo");
m_mcLogo.attachBitmap(app.sys.SysInfo.__get__MatchInfo().__get__LogoBitmapList()[app.sys.Param.LOGO_IDX_TOURNAMENT], 2);
m_mcLogo._x = (-m_mcLogo._width) / 2;
m_mcLogo._visible = false;
_local3 = app.sys.SysInfo.getBgmID();
if (_local3 == -1) {
_local3 = app.sys.SysInfo.__get__SoundManager().playBGM("Tournament");
app.sys.SysInfo.setBgmID(_local3);
}
m_mode = MD_MAIN_ACT;
_local4 = true;
break;
case MD_MAIN_ACT :
createCursor();
m_curMenuIdx = MENU_MAIN;
initMenu(m_curMenuIdx);
m_isShowMenu = true;
m_isBackUpdate = true;
m_isMenuUpdate = true;
m_isSelectUpdate = true;
m_checkMouseMove = true;
m_mode = MD_MAIN_ACT_WAIT;
_local4 = true;
break;
case MD_MAIN_ACT_WAIT :
var _local5 = m_mainMenuIdx;
if (moveMain()) {
if (!(m_mainMenuIdx === STAGETITLE_START)) {
} else {
hideCursor();
destroyCursor();
m_mode = MD_END;
app.sys.SysInfo.__get__SceneGraph().onEvent(app.sys.SceneGraph.EID_FLOW_NEXT, undefined);
app.sys.SysInfo.__get__SoundManager().playSE("OK");
}
}
if (_local5 == m_mainMenuIdx) {
break;
}
m_isSelectUpdate = true;
}
} while (_local4);
m_checkMouseClick = false;
m_checkMouseMove = false;
return(super.move());
}
function moveMain() {
var _local6 = -1;
if (m_checkMouseMove || (m_checkMouseClick)) {
var _local2;
var _local5;
var _local4;
var _local3;
_local4 = m_mcMenu._xmouse;
_local3 = m_mcMenu._ymouse;
_local5 = -1;
_local2 = m_btnMcList.length - 1;
while (_local2 >= 0) {
if (m_btnShowMcList[_local2] && (hitCheckMC(m_btnMcList[_local2].mc, _local4, _local3))) {
showCursor(_local4, _local3);
_local5 = _local2;
break;
}
_local2--;
}
if (_local5 != -1) {
if (m_checkMouseClick) {
_local6 = _local5;
app.sys.SysInfo.__get__SoundManager().playSE("SelectMenu");
} else if (m_mainMenuIdx != _local5) {
app.sys.SysInfo.__get__SoundManager().playSE("MoveMenu");
}
m_mainMenuIdx = _local5;
} else {
m_mainMenuIdx = -1;
hideCursor();
}
}
return(_local6 != -1);
}
function disp() {
var _local4;
if (!(m_curMenuIdx === MENU_MAIN)) {
} else {
if (m_isBackUpdate) {
var _local3;
_local4 = m_mcMenu;
_local3 = app.sys.SysInfo.getStageNum();
_local4.StageStr.gotoAndStop(_local3);
_local4.BgImage.gotoAndStop(_local3);
m_mcLogo._visible = _local3 > 1;
m_isBackUpdate = false;
}
if (m_isMenuUpdate) {
showMenu(m_isShowMenu);
m_isMenuUpdate = false;
}
if (m_isSelectUpdate) {
selectMenu(m_mainMenuIdx);
m_isSelectUpdate = false;
}
}
super.disp();
}
function destroy() {
m_mcLogo.removeMovieClip();
m_mcMenu.removeMovieClip();
super.destroy();
}
function initMenu(idx) {
var _local2;
m_btnMcList = [];
m_btnShowMcList = [];
if (!(idx === MENU_MAIN)) {
} else {
_local2 = m_mcMenu;
_local2.StartBtn.stop();
m_btnMcList.push({mc:_local2.NextBtn});
m_btnShowMcList.push(true);
}
}
static var MD_START = 0;
static var MD_MAIN_ACT = 12;
static var MD_MAIN_ACT_WAIT = 13;
static var MD_END = 99;
static var MENU_MAIN = 0;
static var STAGETITLE_START = 0;
}
Symbol 1597 MovieClip [__Packages.app.flow.MatchFlow] Frame 0
class app.flow.MatchFlow extends app.flow.Flow implements app.sys.SceneGraphListener
{
var m_context, m_isDestroy, m_result;
function MatchFlow (preFlow) {
super(app.flow.Flow.FM_GAME, preFlow);
app.sys.SysInfo.__get__SceneGraph().init(m_context);
app.sys.SysInfo.__get__SceneGraph().addListener(this);
app.sys.SysInfo.__get__SceneGraph().setScene([]);
util.Quality.setMedium();
util.MovieClipFactory.setHighDepth(false);
new app.loop.MatchLoop(m_context, this, preFlow);
}
function move(mode) {
app.sys.SysInfo.__get__WorkList().callMove();
app.sys.SysInfo.__get__Collision().hitCheck();
app.sys.SysInfo.__get__WorkList().callCtrl();
}
function disp(mode) {
app.sys.SysInfo.disp();
app.sys.SysInfo.__get__WorkList().callDisp();
}
function destroy() {
app.sys.SysInfo.__get__WorkList().callDestroyByAttr(m_context.getAttr());
m_isDestroy = true;
}
function onSceneGraphEvent(eventID, param) {
if (((eventID == app.sys.SceneGraph.EID_FLOW_GAMEOVER) || (eventID == app.sys.SceneGraph.EID_FLOW_GAMECLEAR)) || (eventID == app.sys.SceneGraph.EID_FLOW_STAGECLEAR)) {
m_result = eventID;
}
}
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 1532 MovieClip [DebugMC] Frame 1
stop();
Symbol 1535 MovieClip [FPSMC] Frame 1
stop();