DiscoverTenerife
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
StoredPlacesController Class Reference

Class that controls the panels that shows the information of each stored place. More...

Inheritance diagram for StoredPlacesController:

Public Member Functions

void chooseStoredPlace (int index)
 This method should be called when the user choose one of the stored places. It selects the stored place that is on the index-th position. More...
 
void deleteStoredPlace (int index)
 This method should be called when the user clicks on the delete one stored place button. It deletes the stored information of the index-th stored place. It also updates the information of the panel that shows its information. More...
 

Static Public Attributes

static StoredPlace choosenStoredPlace_
 StoredPlace that the user has chosen. Its a static property to keep the information between scenes. More...
 
static StoredPlacesController StoredPlacesControllerObject_
 StoredPlacesController static reference to the object that is selected????? More...
 

Private Member Functions

void Awake ()
 This method is called before the first frame. It sets the information of each stored place on the correspondent element of the panel, and add a reference of the StoredPlace object that is on the index-th position to the storedPlaces_ list. If there isnt any place stored on one of the index it will add null to the storedPlaces_ list. More...
 
void OnDestroy ()
 this method is called when the current GameObject is destroyed. It makes the StoredPlacesControllerObject_ static property null again. More...
 

Private Attributes

GameObject storedPlacesPanel_
 Reference to the GameObject that contains the panel that shows the stored places. More...
 
List< StoredPlacestoredPlaces_
 List of all the StoredPlaces that are shown by the panel. More...
 
string defaultText_ = "You have this empty field to store a place for visit it when you don't have internet conection."
 The text that will be shown when one of the spaces for store a place is free. More...
 

Detailed Description

Class that controls the panels that shows the information of each stored place.

Member Function Documentation

◆ Awake()

void StoredPlacesController.Awake ( )
private

This method is called before the first frame. It sets the information of each stored place on the correspondent element of the panel, and add a reference of the StoredPlace object that is on the index-th position to the storedPlaces_ list. If there isnt any place stored on one of the index it will add null to the storedPlaces_ list.

◆ chooseStoredPlace()

void StoredPlacesController.chooseStoredPlace ( int  index)

This method should be called when the user choose one of the stored places. It selects the stored place that is on the index-th position.

Parameters
intindex of which place is chosen the current user.

◆ deleteStoredPlace()

void StoredPlacesController.deleteStoredPlace ( int  index)

This method should be called when the user clicks on the delete one stored place button. It deletes the stored information of the index-th stored place. It also updates the information of the panel that shows its information.

Parameters
intindex of which place the user wants to delete.

◆ OnDestroy()

void StoredPlacesController.OnDestroy ( )
private

this method is called when the current GameObject is destroyed. It makes the StoredPlacesControllerObject_ static property null again.

Member Data Documentation

◆ choosenStoredPlace_

StoredPlace StoredPlacesController.choosenStoredPlace_
static

StoredPlace that the user has chosen. Its a static property to keep the information between scenes.

◆ defaultText_

string StoredPlacesController.defaultText_ = "You have this empty field to store a place for visit it when you don't have internet conection."
private

The text that will be shown when one of the spaces for store a place is free.

◆ storedPlaces_

List<StoredPlace> StoredPlacesController.storedPlaces_
private

List of all the StoredPlaces that are shown by the panel.

◆ StoredPlacesControllerObject_

StoredPlacesController StoredPlacesController.StoredPlacesControllerObject_
static

StoredPlacesController static reference to the object that is selected?????

◆ storedPlacesPanel_

GameObject StoredPlacesController.storedPlacesPanel_
private

Reference to the GameObject that contains the panel that shows the stored places.


The documentation for this class was generated from the following file: