Beispiel #1
0
        static public void CreateEffectObj(SpriteObj spriteobj, int depth, int speed, int scale, string name = "null")
        {
            EffectObj EffectObject = new EffectObj(spriteobj, depth, speed, scale);

            Objects.EffectObjList.Add(EffectObject);
            if (name == "null")
            {
                Objects.NameIDObjList.Add(new NameIDObj(EffectObject.ID, EffectObject.ID, "EffectObj"));
            }
            else
            {
                Objects.NameIDObjList.Add(new NameIDObj(EffectObject.ID, name, "EffectObj"));
            }
        }
Beispiel #2
0
 static public void DeployEffectObj(EffectObj effectobject, double x, double y)
 {
     effectobject.X      = x;
     effectobject.Y      = y;
     effectobject.Deploy = true;
 }