package de.fruitfly.ovr;

/**
 * Created with IntelliJ IDEA.
 * User: StellaArtois
 * Date: 7/4/13
 * Time: 11:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class UserProfileData
{
    public static enum GenderType
    {
        Gender_Unspecified,
        Gender_Male,
        Gender_Female
    };

    public GenderType _gender;
    public float _playerHeight;
    public float _eyeHeight;
    public float _ipd;
    public String _name;
    public boolean _isDefault;

    UserProfileData(float playerHeight, float eyeHeight, float ipd,
                    String gender, boolean isDefault, String name)
    {
         _name = name;
        _playerHeight = playerHeight;
        _eyeHeight = eyeHeight;
        _ipd = ipd;
        _isDefault = isDefault;

        if (gender.equalsIgnoreCase("male")) {
            _gender = GenderType.Gender_Male;
        }
        else if (gender.equalsIgnoreCase("female")) {
            _gender = GenderType.Gender_Female;
        }
        else
        {
           _gender = GenderType.Gender_Unspecified;
        }
    }

    public String getGenderString()
    {
        String gender = "Unspecified";

        switch(_gender)
        {
            case Gender_Male:
                gender = "Male";
                break;
            case Gender_Female:
                gender = "Female";
        }

        return gender;
    }
}

@@ -354,24 +354,56 @@
 Type _gender
+ = GenderType.Gender_Unspecified
 ;%0A    public
@@ -418,24 +418,32 @@
 playerHeight
+ = 1.62f
 ;%0A    public
@@ -455,24 +455,29 @@
 t _eyeHeight
+ = 0f
 ;%0A    public
@@ -487,16 +487,26 @@
 oat _ipd
+ = 0.0064f
 ;%0A    pu
@@ -518,24 +518,39 @@
 String _name
+ = %22No Profile%22
 ;%0A    public
@@ -568,22 +568,69 @@
 sDefault
-;%0A%0A   
+ = true;%0A%0A    public UserProfileData() %7B%7D%0A%0A    public
  UserPro

Set user profile defaults