Exemple #1
0
func (ca *Card) String() string {
	if ca.GetLevel() == 0 {
		return ffmt.Sputs(map[string]interface{}{
			"Base":  *ca.baseOriginal,
			"Pos":   ca.place,
			"Expre": ca.le,
		})
	}
	return ffmt.Sputs(map[string]interface{}{
		"Curr":  ca.appendOriginal,
		"Pos":   ca.place,
		"Expre": ca.le,
	})
}
Exemple #2
0
func (co CardOriginal) String() string {
	if co.Level != 0 {
		return ffmt.Sputs(map[string]interface{}{
			"Name": co.Name,
			"Id":   co.Id,
			"Pwd":  co.Password,
			"Type": co.Lt,
			"Arrt": co.La,
			"Race": co.Lr,
			"Lv":   co.Level,
			"Atk":  co.Atk,
			"Def":  co.Def,
		})
	} else {
		return ffmt.Sputs(map[string]interface{}{
			"Name": co.Name,
			"Id":   co.Id,
			"Pwd":  co.Password,
			"Type": co.Lt,
		})
	}
}
Exemple #3
0
func INFO(v ...interface{}) {
	printf(info, ffmt.Sputs(v...))
}