Fix: addRecord, addHighestRecord method name
This commit is contained in:
@@ -14,11 +14,10 @@ var TypingExamination = {
|
|||||||
// sessionStorageManager.setPlayingAppKoreanName("타자 검정");
|
// sessionStorageManager.setPlayingAppKoreanName("타자 검정");
|
||||||
// sessionStorageManager.setRecord(0);
|
// sessionStorageManager.setRecord(0);
|
||||||
// sessionStorageManager.setAppHighestRecord(100.123);
|
// sessionStorageManager.setAppHighestRecord(100.123);
|
||||||
sessionStorageManager.setPlayingAppName("typing_examination_korean");
|
sessionStorageManager.setPlayingAppName("typing_examination");
|
||||||
sessionStorageManager.setPlayingAppKoreanName("타자 검정");
|
sessionStorageManager.setPlayingAppKoreanName("타자 검정");
|
||||||
|
|
||||||
|
|
||||||
// this.dbConnectManager = new DBConnectManager();
|
|
||||||
this.dbService = new DBService();
|
this.dbService = new DBService();
|
||||||
this.dbService.setMaestroID(sessionStorageManager.getMaestroID());
|
this.dbService.setMaestroID(sessionStorageManager.getMaestroID());
|
||||||
this.dbService.setPlayerID(sessionStorageManager.getPlayerID());
|
this.dbService.setPlayerID(sessionStorageManager.getPlayerID());
|
||||||
@@ -37,16 +36,14 @@ var TypingExamination = {
|
|||||||
|
|
||||||
game.stage.backgroundColor = TypingExamination.STAGE_BACKGROUND_COLOR;
|
game.stage.backgroundColor = TypingExamination.STAGE_BACKGROUND_COLOR;
|
||||||
|
|
||||||
/*
|
|
||||||
// keyboard shortcut - useless. this.keyboard is chargning for ESC event
|
// keyboard shortcut - useless. this.keyboard is chargning for ESC event
|
||||||
this.keyboardShortcut = new KeyboardShortcut();
|
this.keyboardShortcut = new KeyboardShortcut();
|
||||||
this.keyboardShortcut.addCallback(
|
this.keyboardShortcut.addCallback(
|
||||||
Phaser.KeyCode.ESC, // keyCode
|
Phaser.KeyCode.ESC, // keyCode
|
||||||
null, // keyDownHandler
|
null, // keyDownHandler
|
||||||
(function() { this.back(); }).bind(this), // keyUpHandler
|
(function() { this.back(); }).bind(this), // keyUpHandler
|
||||||
"keyboard_test" // callerClassName
|
"typing_examination" // callerClassName
|
||||||
);
|
);
|
||||||
*/
|
|
||||||
|
|
||||||
// top ui
|
// top ui
|
||||||
var screenTopUI = new ScreenTopUI();
|
var screenTopUI = new ScreenTopUI();
|
||||||
@@ -55,7 +52,6 @@ var TypingExamination = {
|
|||||||
|
|
||||||
|
|
||||||
this.averageTypingSpeedText = new AverageTypingSpeed();
|
this.averageTypingSpeedText = new AverageTypingSpeed();
|
||||||
// this.contentProgressText = new ContentProgress();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -304,7 +300,7 @@ var TypingExamination = {
|
|||||||
if(!isExperienceMaestroAccount())
|
if(!isExperienceMaestroAccount())
|
||||||
this.updateResultRecord();
|
this.updateResultRecord();
|
||||||
|
|
||||||
// game.time.events.add(Phaser.Timer.SECOND * 2, this.goResult, this);
|
game.time.events.add(Phaser.Timer.SECOND * 2, this.goResult, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
updateResultRecord: function() {
|
updateResultRecord: function() {
|
||||||
@@ -589,8 +585,6 @@ var TypingExamination = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
showPlayingWordNumber: function() {
|
showPlayingWordNumber: function() {
|
||||||
// this.contentProgressText.print(this.typingIndex + 1, this.typingContentLength);
|
|
||||||
|
|
||||||
var currentLine = this.typingIndex + 1;
|
var currentLine = this.typingIndex + 1;
|
||||||
this.textTypingLine.text = currentLine + " / " + this.typingContentLength;
|
this.textTypingLine.text = currentLine + " / " + this.typingContentLength;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -57,11 +57,11 @@ function updateRecord($maestroID, $playerID, $writingID, $record)
|
|||||||
// $jsonBuilder->setData("thisHourRecordData", $thisHourRecordData);
|
// $jsonBuilder->setData("thisHourRecordData", $thisHourRecordData);
|
||||||
if ($thisHourRecordData["record"] === null) {
|
if ($thisHourRecordData["record"] === null) {
|
||||||
$typingExam->addRecord($maestroID, $playerID, $writingID, $record);
|
$typingExam->addRecord($maestroID, $playerID, $writingID, $record);
|
||||||
$jsonBuilder->setData("record", "added : ".$record);
|
// $jsonBuilder->setData("record", "added : ".$record);
|
||||||
} else {
|
} else {
|
||||||
if ($record > $thisHourRecordData["record"]) {
|
if ($record > $thisHourRecordData["record"]) {
|
||||||
$typingExam->updateRecord($thisHourRecordData["typingExamRecordID"], $record);
|
$typingExam->updateRecord($thisHourRecordData["typingExamRecordID"], $record);
|
||||||
$jsonBuilder->setData("record", "updated : ".$record);
|
// $jsonBuilder->setData("record", "updated : ".$record);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user