comparison libMyLilPony/libMyLilPony_mountData.lua @ 7:d96c15f7477b

Updated documentation for API.
author syzler
date Tue, 05 Apr 2011 02:05:57 +0000
parents 7dfbf42c2d60
children b1e344c17ab5
comparison
equal deleted inserted replaced
6:21d6611a1307 7:d96c15f7477b
85 [26656] = "GQ"; -- black qiraji battle tank 85 [26656] = "GQ"; -- black qiraji battle tank
86 [92155] = "GQ"; -- ultramarine qiraji battle tank 86 [92155] = "GQ"; -- ultramarine qiraji battle tank
87 [75207] = "V"; -- abyssal seahorse 87 [75207] = "V"; -- abyssal seahorse
88 }; 88 };
89 89
90 --- Checks whether or not the specified spell ID is a ground mount.
91 -- @param spellId The spell ID of the mount to be checked.
92 -- @return A Boolean value indicating whether or not the specified spell is a ground mount.
90 function MyLilPony.IsGroundMount(spellId) 93 function MyLilPony.IsGroundMount(spellId)
91 local entry = MyLilPony_Mounts[spellId]; 94 local entry = MyLilPony_Mounts[spellId];
92 return entry ~= nil and string.match(entry, "G"); 95 return entry ~= nil and string.match(entry, "G");
93 end 96 end
94 97
98 --- Checks whether or not the specified spell ID is a flying mount.
99 -- @param spellId The spell ID of the mount to be checked.
100 -- @return A Boolean value indicating whether or not the specified spell is a flying mount.
95 function MyLilPony.IsFlyingMount(spellId) 101 function MyLilPony.IsFlyingMount(spellId)
96 local entry = MyLilPony_Mounts[spellId]; 102 local entry = MyLilPony_Mounts[spellId];
97 return entry ~= nil and string.match(entry, "A"); 103 return entry ~= nil and string.match(entry, "A");
98 end 104 end
99 105
106 --- Checks whether or not the specified spell ID is an aquatic mount.
107 -- @param spellId The spell ID of the mount to be checked.
108 -- @return A Boolean value indicating whether or not the specified spell is an aquatic mount.
100 function MyLilPony.IsAquaticMount(spellId) 109 function MyLilPony.IsAquaticMount(spellId)
101 local entry = MyLilPony_Mounts[spellId]; 110 local entry = MyLilPony_Mounts[spellId];
102 return entry ~= nil and string.match(entry, "S"); 111 return entry ~= nil and string.match(entry, "S");
103 end 112 end
104 113
114 --- Checks whether or not the specified spell ID is a Temple of Ahn'Qiraj mount.
115 -- @param spellId The spell ID of the mount to be checked.
116 -- @return A Boolean value indicating whether or not the specified spell is a Temple of Ahn'Qiraj mount.
105 function MyLilPony.IsAhnQirajMount(spellId) 117 function MyLilPony.IsAhnQirajMount(spellId)
106 local entry = MyLilPony_Mounts[spellId]; 118 local entry = MyLilPony_Mounts[spellId];
107 return entry ~= nil and string.match(entry, "Q"); 119 return entry ~= nil and string.match(entry, "Q");
108 end 120 end
109 121
122 --- Checks whether or not the specified spell ID is a Vash'jir mount.
123 -- @param spellId The spell ID of the mount to be checked.
124 -- @return A Boolean value indicating whether or not the specified spell is a Vash'jir mount.
110 function MyLilPony.IsVashjirMount(spellId) 125 function MyLilPony.IsVashjirMount(spellId)
111 local entry = MyLilPony_Mounts[spellId]; 126 local entry = MyLilPony_Mounts[spellId];
112 return entry ~= nil and string.match(entry, "V"); 127 return entry ~= nil and string.match(entry, "V");
113 end 128 end