示例#1
0
 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();
 }
示例#3
0
文件: Body.cs 项目: Gothen111/2DWorld
 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));
 }
示例#4
0
 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);
 }
示例#5
0
文件: Body.cs 项目: Gothen111/2DWorld
        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);
        }
示例#6
0
        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);
        }
示例#7
0
 public AttackAnimation(BodyPart _BodyPart)
     : base(_BodyPart, 0, 10)
 {
     this.currentFrame = 0;
 }
示例#8
0
 public StandAnimation(BodyPart _BodyPart)
     : base(_BodyPart, -1, -1)
 {
 }
示例#9
0
 public OpenChestAnimation(BodyPart _BodyPart)
     : base(_BodyPart, 0, 20)
 {
     this.chestOpen = false;
     this.currentFrame = 0;
 }
示例#10
0
 public TakeDamageAnimation(BodyPart _BodyPart)
     : base(_BodyPart, 0, 20)
 {
 }