2013-01-15 17:46:05 -05:00
|
|
|
module Mutant
|
|
|
|
class Mutation
|
|
|
|
# Evul mutation
|
|
|
|
class Evil < self
|
|
|
|
|
|
|
|
# Return identification
|
|
|
|
#
|
|
|
|
# @return [String]
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def identification
|
|
|
|
"evil:#{super}"
|
|
|
|
end
|
|
|
|
memoize :identification
|
|
|
|
|
|
|
|
# Test if killer is successful
|
|
|
|
#
|
|
|
|
# @param [Killer] killer
|
|
|
|
#
|
|
|
|
# @return [true]
|
|
|
|
# if killer killed mutation
|
|
|
|
#
|
|
|
|
# @return [false]
|
|
|
|
# otherwise
|
|
|
|
#
|
|
|
|
# @api private
|
|
|
|
#
|
|
|
|
def success?(killer)
|
|
|
|
killer.killed?
|
|
|
|
end
|
|
|
|
|
2013-06-14 14:54:02 -04:00
|
|
|
end # Evil
|
|
|
|
end # Mutation
|
|
|
|
end # Mutant
|