示例#1
0
文件: npc.go 项目: onewland/gomud
func (n *NPC) HandleStimulus(s mud.Stimulus) {
	handler := n.supportedStimuli[s.StimType()]
	handler(s, n)
}
示例#2
0
文件: npc.go 项目: onewland/gomud
func (n NPC) DoesPerceive(s mud.Stimulus) bool {
	_, there := n.supportedStimuli[s.StimType()]
	return there
}