UNPKG
swordio
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
A medieval warrior-based programming language
github.com/mrfishie/swordio
cpdt/swordio
swordio
/
lib
/
cells
/
NuclearBombCell.js
12 lines
(10 loc)
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
function
NuclearBombCell
(
map
) {
this
.
map
= map; }
NuclearBombCell
.
type
=
"?"
;
NuclearBombCell
.
prototype
.
encounter
=
function
(
enemy, vector
) {
for
(
var
i =
0
; i <
this
.
map
.
enemies
.
length
; i++) {
this
.
map
.
enemies
[i].
kill
(); } };
module
.
exports
=
NuclearBombCell
;