kiki/coffee/splitter.coffee
monsterkodi c953279c39 bomb
2016-08-19 22:14:41 +02:00

24 lines
747 B
CoffeeScript

# 0000000 00000000 000 000 000000000 000000000 00000000 00000000
# 000 000 000 000 000 000 000 000 000 000
# 0000000 00000000 000 000 000 000 0000000 0000000
# 000 000 000 000 000 000 000 000 000
# 0000000 000 0000000 000 000 000 00000000 000 000
Bomb = require './bomb'
Action = require './action'
class Splitter extends Bomb
isSpaceEgoistic: -> false
constructor: (dir) ->
super
@size = 0.0
@splitted = true
@direction = dir
@startTimedAction @getActionWithId Action.EXPLODE
@updateMesh()
module.exports = Splitter