//Constructor public MummyLeft(Mummy mummy) : base(mummy) { this.mummy = mummy; this.angle = (float)Math.PI; this.i = 0; }
//Constructor public MummyUp(Mummy mummy) : base(mummy) { this.mummy = mummy; this.angle = -(float)Math.PI / 2; this.i = 0; }
//Constructor public MummyChase(Mummy mummy) : base(mummy) { this.mummy = mummy; this.i = 0; this.chaseState = new Dictionary<string, AnimatedSprite>() { { "up", this.mummy.MummyUp }, //new MummyUp(mummy)}, { "down", this.mummy.MummyDown }, //new MummyDown(mummy)}, { "left", this.mummy.MummyLeft }, //new MummyLeft(mummy)}, { "right", this.mummy.MummyRight } //new MummyRight(mummy)} }; /* Default waarde up */ this.state = this.chaseState["up"]; }
//constructor public MummyUp(Mummy mummy) : base(mummy) { this.mummy = mummy; this.rotation = (float)Math.PI*(float)1.5; }
//constructor public MummyRight(Mummy mummy) : base(mummy) { this.mummy = mummy; this.rotation = 0f; }
//Constructor public MummyRight(Mummy mummy) : base(mummy) { this.mummy = mummy; this.i = 0; }
//constructor public MummyLeft(Mummy mummy) : base(mummy) { this.mummy = mummy; this.rotation = (float)Math.PI; }