From 0da37aa4b8b6d3ca48a1eedff450605cdb9625d4 Mon Sep 17 00:00:00 2001 From: exane Date: Fri, 19 Jun 2015 18:40:35 +0200 Subject: [PATCH] rearrange folders --- .gitignore | 3 +- assets/data/cards.js | 2 +- {public => client}/css/bootstrap.css | 0 client/index.html | 242 ++++++++++++++++++ {public => client}/js/backbone.modal-min.js | 0 {public => client}/js/client-lobby.js | 0 {public => client}/js/client.js | 2 + {public => client}/js/main.js | 0 {public => client}/scss/_backbone.modal.sass | 0 .../scss/_backbone.modal.theme.sass | 0 {public => client}/scss/_style.sass | 0 {public => client}/scss/main.scss | 4 +- gulpfile.js | 27 +- public/Config.js | 8 + public/index.html | 7 +- test/spec/spec.js | 49 +++- test/{spec => src}/PubSubSpec.js | 0 test/{spec => src}/SpecHelper.js | 0 test/{spec => src}/filterSpec.js | 0 test/{spec => src}/mainSpec.js | 0 20 files changed, 320 insertions(+), 24 deletions(-) rename {public => client}/css/bootstrap.css (100%) create mode 100644 client/index.html rename {public => client}/js/backbone.modal-min.js (100%) rename {public => client}/js/client-lobby.js (100%) rename {public => client}/js/client.js (99%) rename {public => client}/js/main.js (100%) rename {public => client}/scss/_backbone.modal.sass (100%) rename {public => client}/scss/_backbone.modal.theme.sass (100%) rename {public => client}/scss/_style.sass (100%) rename {public => client}/scss/main.scss (94%) create mode 100644 public/Config.js rename test/{spec => src}/PubSubSpec.js (100%) rename test/{spec => src}/SpecHelper.js (100%) rename test/{spec => src}/filterSpec.js (100%) rename test/{spec => src}/mainSpec.js (100%) diff --git a/.gitignore b/.gitignore index 83dfeeb..79263c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .idea -build \ No newline at end of file +public/build +public/index.html \ No newline at end of file diff --git a/assets/data/cards.js b/assets/data/cards.js index cd908eb..6c7f778 100644 --- a/assets/data/cards.js +++ b/assets/data/cards.js @@ -271,7 +271,7 @@ module.exports = { "havekar_healer": { name: "Havekar Healer", power: 0, - ability: "morale_boost", + ability: "medic", img: "healer", faction: "Scoia'tael", type: 1 diff --git a/public/css/bootstrap.css b/client/css/bootstrap.css similarity index 100% rename from public/css/bootstrap.css rename to client/css/bootstrap.css diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..eaf3ad9 --- /dev/null +++ b/client/index.html @@ -0,0 +1,242 @@ + + + + + Gwent + + + + + + + + + + + + + + + + diff --git a/public/js/backbone.modal-min.js b/client/js/backbone.modal-min.js similarity index 100% rename from public/js/backbone.modal-min.js rename to client/js/backbone.modal-min.js diff --git a/public/js/client-lobby.js b/client/js/client-lobby.js similarity index 100% rename from public/js/client-lobby.js rename to client/js/client-lobby.js diff --git a/public/js/client.js b/client/js/client.js similarity index 99% rename from public/js/client.js rename to client/js/client.js index e0a7628..3f638ea 100644 --- a/public/js/client.js +++ b/client/js/client.js @@ -21,6 +21,7 @@ Handlebars.registerHelper("health", function(lives, options){ return out; }); +/* var Config = {}; Config.Server = { @@ -28,6 +29,7 @@ Config.Server = { "port": 16918, secure: false } +*/ var App = Backbone.Router.extend({ routes: { diff --git a/public/js/main.js b/client/js/main.js similarity index 100% rename from public/js/main.js rename to client/js/main.js diff --git a/public/scss/_backbone.modal.sass b/client/scss/_backbone.modal.sass similarity index 100% rename from public/scss/_backbone.modal.sass rename to client/scss/_backbone.modal.sass diff --git a/public/scss/_backbone.modal.theme.sass b/client/scss/_backbone.modal.theme.sass similarity index 100% rename from public/scss/_backbone.modal.theme.sass rename to client/scss/_backbone.modal.theme.sass diff --git a/public/scss/_style.sass b/client/scss/_style.sass similarity index 100% rename from public/scss/_style.sass rename to client/scss/_style.sass diff --git a/public/scss/main.scss b/client/scss/main.scss similarity index 94% rename from public/scss/main.scss rename to client/scss/main.scss index cef1200..f6990ad 100644 --- a/public/scss/main.scss +++ b/client/scss/main.scss @@ -123,9 +123,9 @@ i { float: left; height: 40px; width: 40px; - background: url("../assets/ruby-grey.png"); + background: url("../../assets/ruby-grey.png"); &.ruby { - background: url("../assets/ruby.png"); + background: url("../../assets/ruby.png"); } } diff --git a/gulpfile.js b/gulpfile.js index 5ac1162..ba9d3e6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -12,7 +12,7 @@ livereload({start: true}); gulp.task('browserify', function(){ - browserify('./public/js/main.js', {standalone: "app", debug: true}) + browserify('./client/js/main.js', {standalone: "app", debug: true}) .transform(babelify) .bundle().on("error", function(err){ console.log(err); @@ -20,19 +20,20 @@ gulp.task('browserify', function(){ .pipe(source('app.js').on("error", function(err){ console.log(err); })) - .pipe(gulp.dest('./build/').on("error", function(err){ + .pipe(gulp.dest('./public/build/').on("error", function(err){ console.log(err); })); + }); gulp.task('sass', function(){ - gulp.src('./public/scss/main.scss') + gulp.src('./client/scss/main.scss') .pipe(sass({ outputStyle: 'compressed' }).on("error", function(err){ console.log(err); })) - .pipe(gulp.dest('./build/').on("error", function(err){ + .pipe(gulp.dest('./public/build/').on("error", function(err){ console.log(err); })) .pipe(livereload().on("error", function(err){ @@ -41,7 +42,7 @@ gulp.task('sass', function(){ }); gulp.task("unit tests", function(){ - browserify('./test/spec/mainSpec.js', {standalone: "app", debug: true}) + browserify('./test/src/mainSpec.js', {standalone: "app", debug: true}) .transform(babelify) .bundle().on("error", function(err){ console.log(err); @@ -55,9 +56,17 @@ gulp.task("unit tests", function(){ }) gulp.task("watch", function(){ - gulp.watch("./public/js/*", ["browserify"]); - gulp.watch("./public/scss/*", ["sass"]); - gulp.watch("./test/spec/*", ["unit tests"]); + gulp.watch("./client/js/*", ["browserify"]); + gulp.watch("./client/scss/*", ["sass"]); + gulp.watch("./test/src/*", ["unit tests"]); }) -gulp.task("default", ["watch", "browserify", "sass", "unit tests"]); +gulp.task("index", function() { + gulp.src("./client/index.html") + .pipe(gulp.dest("./public/")); + + gulp.src("./client/css/bootstrap.css") + .pipe(gulp.dest("./public/build")); +}) + +gulp.task("default", ["watch", "browserify", "sass", "unit tests", "index"]); diff --git a/public/Config.js b/public/Config.js new file mode 100644 index 0000000..b86dc88 --- /dev/null +++ b/public/Config.js @@ -0,0 +1,8 @@ + +window.Config = {}; + +Config.Server = { + "hostname": "localhost", + "port": 16918, + secure: false +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index b4d536e..eaf3ad9 100644 --- a/public/index.html +++ b/public/index.html @@ -4,8 +4,9 @@ Gwent - - + + + - + diff --git a/test/spec/spec.js b/test/spec/spec.js index c67490e..397d82e 100644 --- a/test/spec/spec.js +++ b/test/spec/spec.js @@ -3,7 +3,21 @@ module.exports = { - "agile": {}, + "agile": { + cancelPlacement: true, + onBeforePlace: function onBeforePlace(card) { + var self = this; + this.send("played:agile", { cardID: card.getID() }, true); + this.on("agile:setField", function (type) { + self.off("agile:setField"); + card.changeType(type); + self.placeCard(card, { + disabled: true + }); + self.hand.remove(card); + }); + } + }, "medic": { waitResponse: true, onAfterPlace: function onAfterPlace(card) { @@ -518,8 +532,7 @@ module.exports = { "mahakaman_defender": { name: "Mahakaman Defender", power: 5, - ability: "muster", - musterType: "defender", + ability: null, img: "defender2", faction: "Scoia'tael", type: 0 @@ -918,7 +931,7 @@ module.exports = { "monster": ["eredin_king_of_the_wild_hunt", "kayran", "leshen", "imlerith", "draug", "ghoul", "decoy", "decoy", "nekker", "nekker", "wyvern", "foglet", "celaeno_harpy", "gargoyle", "cockatrice", "harpy", "impenetrable_fog", "endrega", "vampire_bruxa", "vampire_bruxa", "vampire_fleder", "vampire_fleder", "vampire_garkain", "vampire_garkain", "vampire_ekimmara", "vampire_ekimmara", "arachas", "botchling", "forktail", "plague_maiden", "griffin", "werewolf", "frightener", "ice_giant", "grave_hag", //"vampire_katakan", - "crone_whispess", "crone_whispess", "crone_brewess", "crone_brewess", "crone_weavess", "crone_weavess", "arachas_behemoth", "fire_elemental", "fiend", "earth_elemental"] + "crone_whispess", "crone_brewess", "crone_brewess", "crone_whispess", "crone_weavess", "crone_weavess", "arachas_behemoth", "fire_elemental", "fiend", "earth_elemental"] }; },{}],4:[function(require,module,exports){ @@ -2561,6 +2574,14 @@ Battleside = (function () { self.playCard(card); }); + this.receive("agile:field", function (data) { + var fieldType = data.field; + self.runEvent("agile:setField", null, [fieldType]); + self.runEvent("NextTurn", null, [self.foe]); + }); + this.receive("cancel:agile", function () { + self.off("agile:setField"); + }); this.on("Turn" + this.getID(), this.onTurnStart, this); }; @@ -2738,7 +2759,7 @@ Battleside = (function () { obj = _.extend({}, obj); this.checkAbilities(card, obj); - if (obj._canclePlacement) return 0; + if (obj._cancelPlacement) return 0; var field = obj.targetSide.field[card.getType()]; field.add(card); @@ -2763,6 +2784,7 @@ Battleside = (function () { r.checkAbilities = function (card, obj, __flag) { var self = this; obj.targetSide = this; + if (obj.disabled) return; var ability = Array.isArray(__flag) || card.getAbility(); if (Array.isArray(ability) && ability.length) { @@ -2777,6 +2799,12 @@ Battleside = (function () { } if (ability && !Array.isArray(ability)) { + if (ability.onBeforePlace) { + ability.onBeforePlace.apply(this, [card]); + } + if (ability.cancelPlacement) { + obj._cancelPlacement = true; + } if (ability.waitResponse) { obj._waitResponse = true; } @@ -2784,7 +2812,7 @@ Battleside = (function () { obj.targetSide = this.foe; } if (ability.replaceWith) { - obj._canclePlacement = true; + obj._cancelPlacement = true; this.on("Decoy:replaceWith", function (replaceCard) { if (replaceCard.getType() == Card.TYPE.LEADER || replaceCard.getType() == Card.TYPE.WEATHER || replaceCard.getType() == Card.TYPE.SPECIAL) { @@ -2939,6 +2967,7 @@ var Card = (function () { r._boost = null; r._forcedPower = null; r._disabled = null; + r._changedType = null; Card.__id = 0; Card.TYPE = { CLOSE_COMBAT: 0, @@ -3001,7 +3030,10 @@ var Card = (function () { return this._data.musterType || null; }; r.getType = function () { - return this._data.type; + return this._changedType == null ? this._data.type : this._changedType; + }; + r.changeType = function (type) { + this._changedType = type; }; r.getKey = function () { return this._key; @@ -3030,6 +3062,7 @@ var Card = (function () { }; r.resetBoost = function () { + this._changedType = null; this._boost = 0; }; @@ -3357,4 +3390,4 @@ require("./filterSpec"); },{"./filterSpec":10}]},{},[11])(11) }); -//# sourceMapping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Iga2V5IGluIG9wdCkge1xyXG4gICAgICB2YXIgcmVzID0gW107XHJcbiAgICAgIHZhciBwcm9wID0ga2V5LCB2YWwgPSBvcHRba2V5XTtcclxuXHJcblxyXG4gICAgICBhcnJDYXJkcy5mb3JFYWNoKGZ1bmN0aW9uKGNhcmQpe1xyXG4gICAgICAgIHZhciBwcm9wZXJ0eSA9IGNhcmQuZ2V0UHJvcGVydHkocHJvcCk7XHJcbiAgICAgICAgaWYoXy5pc0FycmF5KHByb3BlcnR5KSl7XHJcbiAgICAgICAgICB2YXIgX2YgPSBmYWxzZTtcclxuICAgICAgICAgIGZvcih2YXIgaSA9IDA7IGkgPCBwcm9wZXJ0eS5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgICAgICBpZihwcm9wZXJ0eVtpXSA9PT0gdmFsKSB7XHJcbiAgICAgICAgICAgICAgX2YgPSB0cnVlO1xyXG4gICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBpZighX2Ype1xyXG4gICAgICAgICAgICByZXMucHVzaChjYXJkKTtcclxuICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSBpZihjYXJkLmdldFByb3BlcnR5KHByb3ApICE9PSB2YWwpe1xyXG4gICAgICAgICAgcmVzLnB1c2goY2FyZCk7XHJcbiAgICAgICAgfVxyXG4gICAgICB9KVxyXG4gICAgICBhcnIgPSBfLmludGVyc2VjdGlvbihhcnIsIHJlcyk7XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIGFycjtcclxuICB9XHJcblxyXG4gIHJldHVybiBCYXR0bGVzaWRlO1xyXG59KSgpO1xyXG5cclxubW9kdWxlLmV4cG9ydHMgPSBCYXR0bGVzaWRlOyIsInZhciBDYXJkRGF0YSA9IHJlcXVpcmUoXCIuLi9hc3NldHMvZGF0YS9jYXJkc1wiKTtcclxudmFyIEFiaWxpdHlEYXRhID0gcmVxdWlyZShcIi4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DEpO1xyXG4gIH0pXHJcblxyXG5cclxufSkiLCJyZXF1aXJlKFwiLi9maWx0ZXJTcGVjXCIpO1xyXG5cclxuKGZ1bmN0aW9uIG1haW4oKXtcclxuXHJcbn0pKCk7XHJcbiJdfQ== diff --git a/test/spec/PubSubSpec.js b/test/src/PubSubSpec.js similarity index 100% rename from test/spec/PubSubSpec.js rename to test/src/PubSubSpec.js diff --git a/test/spec/SpecHelper.js b/test/src/SpecHelper.js similarity index 100% rename from test/spec/SpecHelper.js rename to test/src/SpecHelper.js diff --git a/test/spec/filterSpec.js b/test/src/filterSpec.js similarity index 100% rename from test/spec/filterSpec.js rename to test/src/filterSpec.js diff --git a/test/spec/mainSpec.js b/test/src/mainSpec.js similarity index 100% rename from test/spec/mainSpec.js rename to test/src/mainSpec.js