public MoveAnimation(BodyPart _BodyPart, Vector3 _Velocity) : base(_BodyPart, 0, 20) { this.currentFrame = 0; this.velocity = _Velocity; //Console.WriteLine("NewMove"); }
public AnimatedObjectAnimation(BodyPart _BodyPart, int _Animation, int _AnimationMax) { this.bodyPart = _BodyPart; this.animation = _Animation; this.animationMax = _AnimationMax; this.onStartAnimation(); }
public Body(SerializationInfo info, StreamingContext ctxt) { this.bodyParts = new List<BodyPart>(); this.mainBody = (BodyPart)info.GetValue("mainBody", typeof(BodyPart)); this.bodyParts.Add(this.mainBody); this.bodyColor = (Color)info.GetValue("bodyColor", typeof(Color)); }
public BodyHuman(SerializationInfo info, StreamingContext ctxt) : base(info, ctxt) { this.hair = (BodyPart)info.GetValue("hair", typeof(BodyPart)); this.BodyParts.Add(this.hair); this.armLeft = (BodyPart)info.GetValue("armLeft", typeof(BodyPart)); this.BodyParts.Add(this.armLeft); }
public Body() { this.bodyParts = new List<BodyPart>(); this.bodyColor = Color.White; this.mainBody = new BodyPart(0, new Vector3(0, 0, 0), this.BodyColor, ""); this.mainBody.AcceptedItemTypes.Add(Factory.FactoryEnums.ItemEnum.Armor); this.bodyParts.Add(this.mainBody); }
public BodyHuman() : base() { this.hair = new BodyPart(2, new Vector3(0, 0, 0), this.BodyColor, ""); this.armLeft = new BodyPart(1, new Vector3(0, 0, 0), this.BodyColor, ""); this.armLeft.AcceptedItemTypes.Add(Factory.FactoryEnums.ItemEnum.Weapon); this.BodyParts.Add(this.hair); this.BodyParts.Add(this.armLeft); }
public AttackAnimation(BodyPart _BodyPart) : base(_BodyPart, 0, 10) { this.currentFrame = 0; }
public StandAnimation(BodyPart _BodyPart) : base(_BodyPart, -1, -1) { }
public OpenChestAnimation(BodyPart _BodyPart) : base(_BodyPart, 0, 20) { this.chestOpen = false; this.currentFrame = 0; }
public TakeDamageAnimation(BodyPart _BodyPart) : base(_BodyPart, 0, 20) { }