-
Notifications
You must be signed in to change notification settings - Fork 0
MainActivity
This is main game activity, most of the function of the game is located here for the gameplay wise
private void feedSet()
Set hunger bar images to reflect current hunger
private int FeedSeal()
Set hunger in
Sealvar.setHunger()
private void applySavedLanguage()
Apply
prefs.getString("app_language", "en")set language, Default:English
private void applySkin()
Set which character show up on screen, Default:
Seal
private void TimeCheck()
Call the weather API if
respones.isSucessful()it set background base on got data.onFailureit set predetermined background
private void ChangeBG()
Set background based on
WeatherAPIdata
private boolean SleepCheck()
Check time if
(time >= 22 || time < 6) == trueset character to sleep and sendSleep Notification
private void SetExtra()
Set data in SharedPreferences,
"hunger","fishcount","base_step"
private void getLocation()
It get
latitudeandlongitudeof player location
private BroadcastReceiver stepReceiverPause = new BroadcastReceiver()
Broadcast receiver of
StepService, more info inStepService.class
private boolean GeoPerm()
This check and if needed as use for
LOCATION PREMISSION
private boolean StepPerm()
This check and if needed as use for
PHYSICAL ACTIVITY PREMISSION
private boolean Notifperm()
This check and if needed as use for
NOTIFICATION PREMISSION
Made by EFanni05
