예제 #1
0
        public GameImage GetImage(int X, int Y, Direction Direction, ClientOutfit Outfit, int Time)
        {
            int v;

            v = (((((int)Direction) * this.BlendFrames) * this.Height + Y) * this.Width + X);
            if (v >= this.Images.Count)
            {
                if (this.Images.Count == 1)
                {
                    v = 0;
                }
                else
                {
                    v %= this.Images.Count;
                }
            }

            /*
             * if(frames > 1)
             * { // Template
             *  TemplateImage* img = getTemplateImage(v, _outfit);
             *  return img->getHardwareID();
             * }
             * */
            return(this.Images[v]);
        }
예제 #2
0
        public GameImage GetImage(int X, int Y, Direction Direction, ClientOutfit Outfit, int Time)
        {
            int v;
            v = (((((int)Direction) * this.BlendFrames) * this.Height + Y) * this.Width + X);
            if(v >= this.Images.Count)
            {
                if(this.Images.Count == 1)
                    v = 0;
                else
                    v %= this.Images.Count;
            }

            /*
            if(frames > 1)
            { // Template
                TemplateImage* img = getTemplateImage(v, _outfit);
                return img->getHardwareID();
            }
             * */
            return this.Images[v];
        }