public static StanceAnimation GetAnimation(player2Animation a) { StanceAnimation an; switch (a) { case player2Animation.Idle: an = new StanceAnimation((int)player2Animation.Idle); an.AddStance(StaticStanceplayer2.Get(player2Stance.Idle), 35, 0); an.AddStance(StaticStanceplayer2.Get(player2Stance.Idle1), 100, 0); return(an); case player2Animation.Answer: an = new StanceAnimation((int)player2Animation.Answer); an.AddStance(StaticStanceplayer2.Get(player2Stance.Answer), 5, 0); return(an); default: return(null); } }
public static StanceAnimation GetAnimation(tentacleAnimation a) { StanceAnimation an; switch (a) { case tentacleAnimation.Idle: an = new StanceAnimation((int)tentacleAnimation.Idle); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 35, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk1), 35, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk6), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk2), 15, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk1), 7, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 22, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk3), 35, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 10, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk2), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk6), 22, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk7), 9, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk3), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 35, 0); return(an); case tentacleAnimation.Walk: an = new StanceAnimation((int)tentacleAnimation.Walk); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 55, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk7), 25, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 33, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk6), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk7), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk3), 20, 0); return(an); case tentacleAnimation.Walk2: an = new StanceAnimation((int)tentacleAnimation.Walk); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 55, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 10, 0); return(an); case tentacleAnimation.Walk3: an = new StanceAnimation((int)tentacleAnimation.Walk); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 55, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk2), 15, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk1), 8, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 35, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk1), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk6), 12, 0); return(an); case tentacleAnimation.Walk4: an = new StanceAnimation((int)tentacleAnimation.Walk); an.AddStance(StaticStancetentacle.Get(tentacleStance.Idle), 55, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk3), 20, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk4), 18, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 9, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk7), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 9, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk1), 12, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk5), 9, 0); an.AddStance(StaticStancetentacle.Get(tentacleStance.Walk6), 12, 0); return(an); default: return(null); } }