History

Remove name parameter from tutorial steps

Ryan Huffman committed 9 years ago

Commit 273ba5e1 parent bdcdceb1 file · +34 −35Browse files

Showing the changes to tutorial/tutorial.js (1 of 1 file). Show all

Unified · Split

tutorial/tutorial.js+34−35
@@ -344,8 +344,8 @@ function playFirecrackerSound(position) { · 343 unmodified lines
344344 // STEP: DISABLE CONTROLLERS //
345345 // //
346346 ///////////////////////////////////////////////////////////////////////////////
347−var stepStart = function(name) {
348− this.tag = name;
347+var stepStart = function() {
348+ this.tag = "start";
349349 }
350350 stepStart.prototype = {
351351 start: function(onFinish) {
@@ -402,8 +402,7 @@ function reenableEverything() { · 50 unmodified lines
402402 // //
403403 ///////////////////////////////////////////////////////////////////////////////
404404
405−var stepEnableControllers = function(name) {
406− this.tag = name;
405+var stepEnableControllers = function() {
407406 this.shouldLog = false;
408407 }
409408 stepEnableControllers.prototype = {
@@ -446,9 +445,9 @@ stepWelcome.prototype = { · 36 unmodified lines
446445 // STEP: Orient and raise hands above head //
447446 // //
448447 ///////////////////////////////////////////////////////////////////////////////
449−var stepOrient = function(name) {
450− this.tag = name;
451− this.tempTag = name + "-temporary";
448+var stepOrient = function() {
449+ this.tag = "orient";
450+ this.tempTag = "orient-temporary";
452451 }
453452 stepOrient.prototype = {
454453 start: function(onFinish) {
@@ -500,8 +499,8 @@ stepOrient.prototype = { · 45 unmodified lines
500499 // //
501500 ///////////////////////////////////////////////////////////////////////////////
502501 var stepNearGrab = function(name) {
503− this.tag = name;
504− this.tempTag = name + "-temporary";
502+ this.tag = "nearGrab";
503+ this.tempTag = "nearGrab-temporary";
505504 this.birdIDs = [];
506505
507506 Messages.subscribe("Entity-Exploded");
@@ -572,9 +571,9 @@ stepNearGrab.prototype = { · 64 unmodified lines
572571 // STEP: Far Grab //
573572 // //
574573 ///////////////////////////////////////////////////////////////////////////////
575−var stepFarGrab = function(name) {
576− this.tag = name;
577− this.tempTag = name + "-temporary";
574+var stepFarGrab = function() {
575+ this.tag = "farGrab;
576+ this.tempTag = "farGrab-temporary";
578577 this.finished = true;
579578 this.birdIDs = [];
580579
@@ -675,11 +674,11 @@ PositionWatcher.prototype = { · 94 unmodified lines
675674 // STEP: Equip //
676675 // //
677676 ///////////////////////////////////////////////////////////////////////////////
678−var stepEquip = function(name) {
679− this.tag = name;
680− this.tagPart1 = name + "-part1";
681− this.tagPart2 = name + "-part2";
682− this.tempTag = name + "-temporary";
677+var stepEquip = function() {
678+ this.tag = "equip";
679+ this.tagPart1 = "equip-part1";
680+ this.tagPart2 = "equip-part2";
681+ this.tempTag = "equip-temporary";
683682 this.PART1 = 0;
684683 this.PART2 = 1;
685684 this.PART3 = 2;
@@ -809,9 +808,9 @@ stepEquip.prototype = { · 123 unmodified lines
809808 // STEP: Turn Around //
810809 // //
811810 ///////////////////////////////////////////////////////////////////////////////
812−var stepTurnAround = function(name) {
813− this.tag = name;
814− this.tempTag = name + "-temporary";
811+var stepTurnAround = function() {
812+ this.tag = "turnAround";
813+ this.tempTag = "turnAround-temporary";
815814
816815 this.onActionBound = this.onAction.bind(this);
817816 this.numTimesSnapTurnPressed = 0;
@@ -895,9 +894,9 @@ stepTurnAround.prototype = { · 77 unmodified lines
895894 // STEP: Teleport //
896895 // //
897896 ///////////////////////////////////////////////////////////////////////////////
898−var stepTeleport = function(name) {
899− this.tag = name;
900− this.tempTag = name + "-temporary";
897+var stepTeleport = function() {
898+ this.tag = "teleport";
899+ this.tempTag = "teleport-temporary";
901900 }
902901 stepTeleport.prototype = {
903902 start: function(onFinish) {
@@ -955,9 +954,9 @@ stepTeleport.prototype = { · 51 unmodified lines
955954 // STEP: Finish //
956955 // //
957956 ///////////////////////////////////////////////////////////////////////////////
958−var stepFinish = function(name) {
959− this.tag = name;
960− this.tempTag = name + "-temporary";
957+var stepFinish = function() {
958+ this.tag = "finish";
959+ this.tempTag = "finish-temporary";
961960 }
962961 stepFinish.prototype = {
963962 start: function(onFinish) {
@@ -1010,15 +1009,15 @@ TutorialManager = function() { · 46 unmodified lines
10101009 // If Script.generateUUID is not available, default to an empty string.
10111010 tutorialID = Script.generateUUID ? Script.generateUUID() : "";
10121011 STEPS = [
1013− new stepStart("start"),
1014− new stepOrient("orient"),
1015− new stepNearGrab("nearGrab"),
1016− new stepFarGrab("farGrab"),
1017− new stepEquip("equip"),
1018− new stepTurnAround("turnAround"),
1019− new stepTeleport("teleport"),
1020− new stepFinish("finish"),
1021− new stepEnableControllers("enableControllers"),
1012+ new stepStart(),
1013+ new stepOrient(),
1014+ new stepNearGrab(),
1015+ new stepFarGrab(),
1016+ new stepEquip(),
1017+ new stepTurnAround(),
1018+ new stepTeleport(),
1019+ new stepFinish(),
1020+ new stepEnableControllers(),
10221021 ];
10231022 wentToEntryStepNum = STEPS.length;
10241023 for (var i = 0; i < STEPS.length; ++i) {