22. <p>
W tej sesji gry niesamowite umiejętności
strzeleckie
pozwolily Ci osiągnąć nowy rekord:<br>
<b>{{playerMaxScore}} punktów.</b>
</p>
<a class="button ok_button">DALEJ</a>
handlebar
28. Zmiana sposobu myślenia
W której fazie jest Twój projekt?
• Faza 1: No JavaScript
• Faza 2: JQuery explosion
• Faza 3: Page/Widget object
• Faza 4: Single Page Application
61. class engine.invite_and_win.GameUseCase
constructor: (@game, @player) ->
ObjectHelper.addRole(@player, engine.shared.models.PlayerWithFriends)
@facebookHQ = new engine.invite_and_win.FacebookHQ()
tryToEnterGameArea: () =>
if @amIEnteringGameFirstTime()
if @amICommingFromInvitation()
@tellPlayerHeIsPartOfTeam(@facebookHQ.friendsInviting)
@teachPlayerHowToPlay()
else #n-th time...
if @amICommingFromInvitation()
@tellPlayerHeIsPartOfTeam(@facebookHQ.friendsInviting)
if not @playerLikesFanpage()
@askPlayerToLikeFanpage()
if @haveNotYetPickedFavPizzaCountry()
@askPlayerToDeclareHisFavCountry()
74. class engine.invite_and_win.GameUseCase
constructor: (@game, @player) ->
ObjectHelper.addRole(@player, engine.shared.models.PlayerWithFriends)
tryToEnterGameArea: () =>
if @amIEnteringGameFirstTime()
if @amICommingFromInvitation()
@tellPlayerHeIsPartOfTeam(@facebookHQ.friendsInviting)
rola
@teachPlayerHowToPlay()
else #n-th time...
if @amICommingFromInvitation()
@tellPlayerHeIsPartOfTeam(@facebookHQ.friendsInviting)
if not @playerLikesFanpage()
@askPlayerToLikeFanpage()
if @haveNotYetPickedFavPizzaCountry()
@askPlayerToDeclareHisFavCountry()
87. scenario "player enters and has no friends", ->
@player.enterGame(@playerWithNoFriends)
@player.shouldSeeMainAreaWithInviteButton()
@player.shouldSeeRemainingFriendsToCompleteTeam(4)
scenario "player enters and has collected part team", ->
@player.enterGame(@playerWith3AcceptedFriends)
@player.shouldSeeMainAreaWithInviteButton()
@player.shouldSeeRemainingFriendsToCompleteTeam(1)
scenario "player enters and has collected whole team", ->
@player.enterGame(@playerWith4AcceptedFriends)
@player.shouldSeeMainAreaWithPostToWallButton()