Add fns to get username / universe
@@ -31,6 +31,8 @@ type Wrapper interface {
GetPageContent(url.Values) string
Login() error
Logout()
+ GetUsername() string
+ GetUniverseName() string
GetUniverseSpeed() int
GetUniverseSpeedFleet() int
IsDonutGalaxy() bool
@@ -2058,6 +2060,16 @@ func (b *OGame) Logout() {
b.logout()
}
+// GetUniverseName ...
+func (b *OGame) GetUniverseName() string {
+ return b.Universe
+}
+
+// GetUsername ...
+func (b *OGame) GetUsername() string {
+ return b.Username
+}
+
// GetUniverseSpeed ...
func (b *OGame) GetUniverseSpeed() int {
return b.getUniverseSpeed()
