Migrating from tileGroupNumber to tileGroupLetter.

This commit is contained in:
Nick Winter 2014-06-24 16:32:44 -07:00
parent 580d002a98
commit dd9b8a0018
4 changed files with 4 additions and 5 deletions

View file

@ -405,7 +405,7 @@ module.exports = class Simulator extends CocoClass
executionLimit: 1 * 1000 * 1000
language: codeLanguage
if methodName is 'hear' then aetherOptions.functionParameters = ['speaker', 'message', 'data']
if methodName is 'makeBid' then aetherOptions.functionParameters = ['tileGroupNumber']
if methodName is 'makeBid' then aetherOptions.functionParameters = ['tileGroupLetter']
if methodName is "findCentroids" then aetherOptions.functionParameters = ["centroids"]
#console.log "creating aether with options", aetherOptions
return new Aether aetherOptions

View file

@ -93,8 +93,7 @@ module.exports = class Mark extends CocoClass
@mark.addChild text
else if @sprite.thang.drawsBoundsStyle is 'corner-text'
return if @sprite.thang.world.age is 0
#letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[@drawsBoundsIndex % 26]
letter = @sprite.thang.drawsBoundsIndex
letter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[@drawsBoundsIndex % 26]
text = new createjs.Text letter, "14px Arial", "#333333" # color.replace('0.5', '1')
text.x = -w / 2 + 2
text.y = -h / 2 + 2

View file

@ -92,7 +92,7 @@ module.exports = class LadderSubmissionView extends CocoView
includeFlow: false
executionLimit: 1 * 1000 * 1000
if spellID is "hear" then aetherOptions.functionParameters = ["speaker","message","data"]
if spellID is "makeBid" then aetherOptions.functionParameters = ["tileGroupNumber"]
if spellID is "makeBid" then aetherOptions.functionParameters = ["tileGroupLetter"]
if spellID is "findCentroids" then aetherOptions.functionParameters = ["centroids"]
aether = new Aether aetherOptions

View file

@ -41,7 +41,7 @@ transpileLevelSession = (sessionID, cb) ->
includeFlow: false
executionLimit: 1 * 1000 * 1000
if spellID is "hear" then aetherOptions.functionParameters = ["speaker","message","data"]
if spellID is "makeBid" then aetherOptions.functionParameters = ["tileGroupNumber"]
if spellID is "makeBid" then aetherOptions.functionParameters = ["tileGroupLetter"]
if spellID is "findCentroids" then aetherOptions.functionParameters = ["centroids"]
aether = new Aether aetherOptions