00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 package com.realtime.crossfire.jxclient.animations;
00023
00024 import org.jetbrains.annotations.NotNull;
00025
00031 public class Animation {
00032
00036 private final int animationId;
00037
00041 private final int flags;
00042
00046 @NotNull
00047 private final int[] faces;
00048
00055 public Animation(final int animationId, final int flags, @NotNull final int[] faces) {
00056 assert faces.length > 0;
00057
00058 this.animationId = animationId;
00059 this.flags = flags;
00060 this.faces = new int[faces.length];
00061 System.arraycopy(faces, 0, this.faces, 0, faces.length);
00062 }
00063
00068 public int getAnimationId() {
00069 return animationId;
00070 }
00071
00076 public int getFaces() {
00077 return faces.length;
00078 }
00079
00085 public int getFace(final int index) {
00086 return faces[index];
00087 }
00088
00089 }