public Monster(Vector2 POS, Vector2 FRAMES, int OWNERID) : base("2D\\Units\\chitiniac-move", POS, new Vector2(40, 40), new Vector2(8, 1), OWNERID) { speed = 1.5f; health = 3; healthMax = health; killValue = 5; spawnTimer = new McTimer(8000); spawnTimer.AddToTimer(4000); frameAnimations = true; currentAnimation = 0; frameAnimationList.Add(new FrameAnimation(new Vector2(frameSize.X, frameSize.Y), frames, new Vector2(0, 0), 8, 133, 0, "Walk")); }
public virtual void LoadData(XElement DATA) { if (DATA != null) { spawnTimer.AddToTimer(Convert.ToInt32(DATA.Element("timerAdd").Value, Globals.culture)); List <XElement> mobList = (from t in DATA.Descendants("mob") select t).ToList <XElement>(); for (int i = 0; i < mobList.Count; i++) { mobChoices.Add(new MobChoice(mobList[i].Value, Convert.ToInt32(mobList[i].Attribute("rate").Value, Globals.culture))); } } }