/*
 * VideoToons. A Tribute to old Video Games.
 * Copyright (C) 2001 - Bertrand Le Nistour
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

package videotoons.data;

import videotoons.game.*;


class PlayerMario
{
   public AnimLibrary anim;

    public PlayerMario()
    {
    	anim = new AnimLibrary();

         anim.name = new String("mario");
         anim.nb_images = 33;

      // Images offset & indexes

         int array1[] = { 3, 2, 1, };
         anim.move_right = new Anim( array1 );
        
         int array2[] = { 20, 19, 18 };
         anim.move_left = new Anim( array2 );
         
         int array3[] = { 20, 19, 18, 17, 16, 15, 13, 10, 6, 2, 1 };
         anim.jump_offset = array3;
         anim.nb_jump_steps=11;
         
         int array4[] = { 20 };
         anim.leftside = new Anim( array4 );

         int array5[] = { 0 };
         anim.middle = new Anim( array5 );
         
         int array6[] = { 3 };
         anim.rightside = new Anim( array6 );
         
         int array7[] = { 21 };
         anim.jump_left = new Anim( array7 );
         
         int array8[] = { 4 };
         anim.jump_right = new Anim( array8 );

         int array9[] = { 4 };
         anim.hit_up_right = new Anim( array9 );         

         int array10[] = { 21 };
         anim.hit_up_left = new Anim( array10 );

         int array11[] = { 22 };
         anim.fall_left = new Anim( array11 );
         
         int array12[] = { 5 };
         anim.fall_right = new Anim( array12 );

         int array13[] = { -20, -20, -15, -10, -6, -2, 0, 2, 6, 10, 15, 20, 25 };
         anim.dead_offset = array13;
         anim.nb_dead_steps = 13;

         int array14[] = { 8, 8, 9, 9 };
         anim.dead = new Anim( array14 );
         
         int array15[] = { 23, 23, 23, 24, 24, 24, 23, 23, 24 };
         anim.hurt_left = new Anim( array15 );
         
         int array16[] = { 6, 6, 6, 7, 7, 7, 6, 6, 7 };
         anim.hurt_right = new Anim( array16 );

         int array17[] = { -10, -5, -2, 0, -6, -3, 0, -4, -2 };
         anim.hurt_offset = array17;
         anim.nb_hurt_steps=9;

         int array18[] = { 25, 29, 32, 20  };
         anim.hit_left = new Anim( array18 );
         
         int array19[] = { 10, 14, 17, 3  };
         anim.hit_right = new Anim( array19 );

         int array20[] = { -4,  -9,  -4, 17 };
         anim.hit_left_offset = array20;
         
         int array21[] = { 0, 0, 0, 0 };
         anim.hit_right_offset = array21;
         anim.nb_hit_steps = 4;

         anim.sprite_basicspeed = 5;
         anim.overlap_sprite = 5;
         anim.std_width = 16;
         anim.std_height = 28;

         anim.hit_interval = 200;

         anim.jump_sound = SoundLibrary.JUMP_SOUND;
         anim.land_sound = SoundLibrary.LAND_SOUND;
         anim.hit_sound = SoundLibrary.LIGHT_HIT_SOUND;
         anim.hurt_sound = SoundLibrary.LONG_HURT_SOUND;
         anim.dead_sound = SoundLibrary.DEAD_SOUND;
    }
}


