diff --git a/app/src/main/java/com/communistutopia/spacetrader/model/SolarSystem.kt b/app/src/main/java/com/communistutopia/spacetrader/model/SolarSystem.kt index d398cfe..c815fa6 100644 --- a/app/src/main/java/com/communistutopia/spacetrader/model/SolarSystem.kt +++ b/app/src/main/java/com/communistutopia/spacetrader/model/SolarSystem.kt @@ -18,7 +18,6 @@ class SolarSystem(var planets: List, var name: String, val x: Int,val y /** * Function to calculate Euclidean distance between 2 Solar Systems - * TODO: Might want to place this in Companion obj. Equivalent to making it static. Not sure yet. * * @param other solar system to compare location to */ diff --git a/app/src/main/java/com/communistutopia/spacetrader/view/DebugGameFragment.kt b/app/src/main/java/com/communistutopia/spacetrader/view/DebugGameFragment.kt index 6aeea59..4c9f618 100644 --- a/app/src/main/java/com/communistutopia/spacetrader/view/DebugGameFragment.kt +++ b/app/src/main/java/com/communistutopia/spacetrader/view/DebugGameFragment.kt @@ -29,7 +29,6 @@ class DebugGameFragment : Fragment() { override fun onActivityCreated(savedInstanceState: Bundle?) { super.onActivityCreated(savedInstanceState) viewModel = ViewModelProviders.of(this).get(DebugGameViewModel::class.java) - // TODO: Use the ViewModel val solarSystems: List = ArrayList(viewModel.solarSystems) val adapter = SolarSystemAdapter(context!!, solarSystems) solar_systems_list.adapter = adapter diff --git a/app/src/main/java/com/communistutopia/spacetrader/view/GameFragment.kt b/app/src/main/java/com/communistutopia/spacetrader/view/GameFragment.kt index 45dc0e7..e6764bc 100644 --- a/app/src/main/java/com/communistutopia/spacetrader/view/GameFragment.kt +++ b/app/src/main/java/com/communistutopia/spacetrader/view/GameFragment.kt @@ -41,7 +41,6 @@ class GameFragment : Fragment() { // Start audio viewModel.goToSpace(context) - // TODO: Resource string placeholder // planet_name.text = "Planet: %s".format(viewModel.player.value?.location?.name) market_button.setOnClickListener { diff --git a/app/src/main/java/com/communistutopia/spacetrader/view/LocationActivity.kt b/app/src/main/java/com/communistutopia/spacetrader/view/LocationActivity.kt index 01e7c8b..a88561d 100644 --- a/app/src/main/java/com/communistutopia/spacetrader/view/LocationActivity.kt +++ b/app/src/main/java/com/communistutopia/spacetrader/view/LocationActivity.kt @@ -21,7 +21,7 @@ class LocationActivity: AppCompatActivity() { private lateinit var viewModel: LocationViewModel //lateinit var piratePopUp: PopupWindow //lateinit var policePopUp: PopupWindow - lateinit var closePopupBtn: Button + private lateinit var closePopupBtn: Button @SuppressLint("ResourceType") @@ -67,8 +67,8 @@ class LocationActivity: AppCompatActivity() { val layoutInflater = this@LocationActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater val customView = layoutInflater.inflate(R.layout.police_popup, null) - closePopupBtn = customView.findViewById