예제 #1
0
 public MoveAnimation(BodyPart _BodyPart, Vector3 _Velocity)
     : base(_BodyPart, 0, 20)
 {
     this.currentFrame = 0;
     this.velocity = _Velocity;
     //Console.WriteLine("NewMove");
 }
예제 #2
0
 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)
 {
 }