You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
897 B
Go

package sim
import (
"time"
"github.com/jordanorelli/blammo"
)
type door struct {
*blammo.Log
}
func (d *door) update(time.Duration) {}
func (d *door) onStartOverlap(e *entity) {
d.Info("start overlap: %v", e)
}
func (d *door) onOverlap(e *entity) {
d.Info("overlap: %v", e)
}
func (d *door) onStopOverlap(e *entity) {
d.Info("stop overlap: %v", e)
}
/*
··········
··········
··········
··········
··········
·····d····
··········
··········
··········
··········
*/