1
1
/*
2
- * Copyright (c) 2009-2018 jMonkeyEngine
2
+ * Copyright (c) 2009-2019 jMonkeyEngine
3
3
* All rights reserved.
4
4
*
5
5
* Redistribution and use in source and binary forms, with or without
@@ -102,7 +102,9 @@ public AnimControl(Skeleton skeleton) {
102
102
}
103
103
104
104
/**
105
- * Serialization only. Do not use.
105
+ * Instantiate an animation control with no skeleton, suitable only for
106
+ * animations that don't contain any bone tracks. Also used for
107
+ * serialization.
106
108
*/
107
109
public AnimControl () {
108
110
}
@@ -144,6 +146,7 @@ public void setAnimations(HashMap<String, Animation> animations) {
144
146
145
147
/**
146
148
* Retrieve an animation from the list of animations.
149
+ *
147
150
* @param name The name of the animation to retrieve.
148
151
* @return The animation corresponding to the given name, or null, if no
149
152
* such named animation exists.
@@ -155,6 +158,7 @@ public Animation getAnim(String name) {
155
158
/**
156
159
* Adds an animation to be available for playing to this
157
160
* <code>AnimControl</code>.
161
+ *
158
162
* @param anim The animation to add.
159
163
*/
160
164
public void addAnim (Animation anim ) {
@@ -163,6 +167,7 @@ public void addAnim(Animation anim) {
163
167
164
168
/**
165
169
* Remove an animation so that it is no longer available for playing.
170
+ *
166
171
* @param anim The animation to remove.
167
172
*/
168
173
public void removeAnim (Animation anim ) {
@@ -231,6 +236,7 @@ public Skeleton getSkeleton() {
231
236
232
237
/**
233
238
* Adds a new listener to receive animation related events.
239
+ *
234
240
* @param listener The listener to add.
235
241
*/
236
242
public void addListener (AnimEventListener listener ) {
@@ -244,6 +250,7 @@ public void addListener(AnimEventListener listener) {
244
250
245
251
/**
246
252
* Removes the given listener from listening to events.
253
+ *
247
254
* @param listener
248
255
* @see AnimControl#addListener(com.jme3.animation.AnimEventListener)
249
256
*/
@@ -308,6 +315,7 @@ public Collection<String> getAnimationNames() {
308
315
309
316
/**
310
317
* Returns the length of the given named animation.
318
+ *
311
319
* @param name The name of the animation
312
320
* @return The length of time, in seconds, of the named animation.
313
321
*/
0 commit comments