Skip to content

Commit

Permalink
move code
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Sep 14, 2018
1 parent 0a305e7 commit e779f4b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions baseShip.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ func (b BaseShip) GetBaseSpeed() int {
return b.BaseSpeed
}

// GetFuelConsumption ...
func (b BaseShip) GetFuelConsumption() int {
return b.FuelConsumption
}

// GetRapidfireAgainst ...
func (b BaseShip) GetRapidfireAgainst() map[ID]int {
return b.RapidfireAgainst
}

// GetSpeed ...
func (b BaseShip) GetSpeed(techs Researches) int {
techDriveLvl := 0
Expand Down Expand Up @@ -47,13 +57,3 @@ func (b BaseShip) GetSpeed(techs Researches) int {
}
return int(float64(b.BaseSpeed) + (float64(b.BaseSpeed)*0.2)*float64(techDriveLvl))
}

// GetFuelConsumption ...
func (b BaseShip) GetFuelConsumption() int {
return b.FuelConsumption
}

// GetRapidfireAgainst ...
func (b BaseShip) GetRapidfireAgainst() map[ID]int {
return b.RapidfireAgainst
}

0 comments on commit e779f4b

Please sign in to comment.