Exemplo n.º 1
0
        private static DefineSprite defineSprite(System.String name, TagList taglist)
        {
            DefineSprite defineSprite = new DefineSprite();

            defineSprite.framecount = 1;
            defineSprite.tagList    = taglist;
            defineSprite.name       = name;
            return(defineSprite);
        }
Exemplo n.º 2
0
		public virtual void  Package(SaxAttributesSupport attributes)
		{
			text = new System.Text.StringBuilder();
			DefineSprite pkg = new DefineSprite();
			DoInitAction initAction = new DoInitAction(pkg);
			// get id for this package
			int id = parseInt(getAttribute(attributes, "id"));
			createCharacter(id, pkg);
			currentHandler().defineSprite(pkg);
			startLineNumber = locator.getLineNumber();
			stack.Add(initAction);
		}
Exemplo n.º 3
0
		public virtual void  DefineSprite()
		{
			DefineSprite sprite = (DefineSprite) SupportClass.StackSupport.Pop(stack);
			this.sprite = null;
			tagHandler.defineSprite(sprite);
		}
Exemplo n.º 4
0
		public virtual void  DefineSprite(SaxAttributesSupport attributes)
		{
			DefineSprite sprite = new DefineSprite();
			int id = parseInt(getAttribute(attributes, "id"));
			createCharacter(id, sprite);
			stack.Add(sprite);
			this.sprite = sprite;
		}
		private static DefineSprite defineSprite(System.String name, TagList taglist)
		{
			DefineSprite defineSprite = new DefineSprite();
			defineSprite.framecount = 1;
			defineSprite.tagList = taglist;
			defineSprite.name = name;
			return defineSprite;
		}