(game, parent, index)
| 301 | /***********************************************************************************/ |
| 302 | |
| 303 | var TreeGroup = function(game, parent, index){ |
| 304 | Phaser.Group.call(this, game, parent); |
| 305 | |
| 306 | this.index = index; |
| 307 | |
| 308 | this.topTree = new Tree(this.game, 0); // create a top Tree object |
| 309 | this.bottomTree = new Tree(this.game, 1); // create a bottom Tree object |
| 310 | |
| 311 | this.add(this.topTree); // add the top Tree to this group |
| 312 | this.add(this.bottomTree); // add the bottom Tree to this group |
| 313 | }; |
| 314 | |
| 315 | TreeGroup.prototype = Object.create(Phaser.Group.prototype); |
| 316 | TreeGroup.prototype.constructor = TreeGroup; |
nothing calls this directly
no outgoing calls
no test coverage detected