root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/player/PlayerSettings.java

8581512
16
 */
16
 */
17
package com.aionemu.gameserver.model.gameobjects.player;
17
package com.aionemu.gameserver.model.gameobjects.player;
18
18
19
import com.aionemu.gameserver.model.gameobjects.player.DeniedStatus;
19
import com.aionemu.gameserver.model.gameobjects.PersistentState;
20
import com.aionemu.gameserver.model.gameobjects.PersistentState;
20
21
21
/**
22
/**
...
...
67
	{
68
	{
68
		return uiSettings;
69
		return uiSettings;
69
	}
70
	}
71
70
	/**
72
	/**
71
	 * @param uiSettings the uiSettings to set
73
	 * @param uiSettings the uiSettings to set
72
	 */
74
	 */
...
...
75
		this.uiSettings = uiSettings;
77
		this.uiSettings = uiSettings;
76
		persistentState = PersistentState.UPDATE_REQUIRED;
78
		persistentState = PersistentState.UPDATE_REQUIRED;
77
	}
79
	}
80
78
	/**
81
	/**
79
	 * @return the shortcuts
82
	 * @return the shortcuts
80
	 */
83
	 */
...
...
82
	{
85
	{
83
		return shortcuts;
86
		return shortcuts;
84
	}
87
	}
88
85
	/**
89
	/**
86
	 * @param shortcuts the shortcuts to set
90
	 * @param shortcuts the shortcuts to set
87
	 */
91
	 */
...
...
90
		this.shortcuts = shortcuts;
94
		this.shortcuts = shortcuts;
91
		persistentState = PersistentState.UPDATE_REQUIRED;
95
		persistentState = PersistentState.UPDATE_REQUIRED;
92
	}
96
	}
97
93
	/**
98
	/**
94
	 * @return the deny
99
	 * @return the display
95
	 */
100
	 */
96
	public int getDeny()
101
	public int getDisplay()
97
	{
102
	{
98
		return deny;
103
		return display;
99
	}
104
	}
105
100
	/**
106
	/**
101
	 * @param deny the deny to set
107
	 * @param display the display to set
102
	 */
108
	 */
103
	public void setDeny(int deny)
109
	public void setDisplay(int display)
104
	{
110
	{
105
		this.deny = deny;
111
		this.display = display;
106
		persistentState = PersistentState.UPDATE_REQUIRED;
112
		persistentState = PersistentState.UPDATE_REQUIRED;
107
	}
113
	}
114
108
	/**
115
	/**
109
	 * @return the display
116
	 * @return the deny
110
	 */
117
	 */
111
	public int getDisplay()
118
	public int getDeny()
112
	{
119
	{
113
		return display;
120
		return deny;
114
	}
121
	}
122
115
	/**
123
	/**
116
	 * @param display the display to set
124
	 * @param deny the deny to set
117
	 */
125
	 */
118
	public void setDisplay(int display)
126
	public void setDeny(int deny)
119
	{
127
	{
120
		this.display = display;
128
		this.deny = deny;
121
		persistentState = PersistentState.UPDATE_REQUIRED;
129
		persistentState = PersistentState.UPDATE_REQUIRED;
122
	}
130
	}
131
132
	public boolean isInDeniedStatus(DeniedStatus deny)
133
	{
134
		int isDeniedStatus = this.deny & deny.getId();
135
136
		if(isDeniedStatus == deny.getId())
137
			return true;
138
139
		return false;
140
	}
123
}
141
}