Пример #1
0
func (n *NPC) HandleStimulus(s mud.Stimulus) {
	handler := n.supportedStimuli[s.StimType()]
	handler(s, n)
}
Пример #2
0
func (n NPC) DoesPerceive(s mud.Stimulus) bool {
	_, there := n.supportedStimuli[s.StimType()]
	return there
}