예제 #1
0
파일: utils.go 프로젝트: jiedo/slingo
func (self *Ground) Refresh_ground() {
	glog.Info("refresh...")
	// to implement
	for i, cata := range self.catapults {
		glog.Infof("----------------bot%d(%s):----------------", i, cata.name)
		glog.Infof("%v", cata)

	}
}
예제 #2
0
파일: utils.go 프로젝트: jiedo/slingo
func (self *Ground) Update_ground() {
	glog.Info("Update...")
	// to implement
	for i, cata := range self.catapults {
		glog.Infof("----------------bot%d(%s):----------------", i, cata.name)
		glog.Infof("%v", cata)

	}

	for i, ball := range self.balls {
		glog.Infof("----------------ball%d:----------------", i)
		glog.Infof("%v", ball)

	}

}