Documentation
¶
Index ¶
- func Serialize(chart *TypeChart) (string, error)
- func SerializeToFile(chart *TypeChart, filepath string) error
- type TypeChart
- func (self *TypeChart) AddInteraction(attackingType, defendingType string, effectiveness float64) *TypeChart
- func (self *TypeChart) AttackingTypes() map[string]struct{}
- func (tc *TypeChart) DefendingTypes() map[string]struct{}
- func (self *TypeChart) Effectiveness(attackingType, defendingType string) (float64, bool)
- func (self *TypeChart) Equals(other *TypeChart) bool
- func (self *TypeChart) RemoveInteraction(attackingType, defendingType string) *TypeChart
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SerializeToFile ¶
Types ¶
type TypeChart ¶
type TypeChart struct {
// contains filtered or unexported fields
}
func Deserialize ¶
This function requires that the csv data is of square format it does not require that the attacking type set is equal to the defending type set
func DeserializeFile ¶
func NewTypeChart ¶
func NewTypeChart() *TypeChart
func (*TypeChart) AddInteraction ¶
func (*TypeChart) AttackingTypes ¶
func (*TypeChart) DefendingTypes ¶
func (*TypeChart) Effectiveness ¶
func (*TypeChart) RemoveInteraction ¶
Click to show internal directories.
Click to hide internal directories.