TurtleMobility.dtd 945 B

12345678910111213141516171819202122232425262728293031323334
  1. <!ELEMENT movements (movement)*>
  2. <!ELEMENT movement (repeat|set|forward|turn|wait|moveto|moveby)*>
  3. <!ATTLIST movement id NMTOKEN #IMPLIED>
  4. <!ELEMENT repeat (repeat|set|forward|turn|wait|moveto|moveby)*>
  5. <!ATTLIST repeat n CDATA #IMPLIED>
  6. <!ELEMENT set EMPTY>
  7. <!ATTLIST set x CDATA #IMPLIED
  8. y CDATA #IMPLIED
  9. speed CDATA #IMPLIED
  10. angle CDATA #IMPLIED
  11. borderPolicy (reflect|wrap|placerandomly|error) #IMPLIED>
  12. <!ELEMENT forward EMPTY>
  13. <!ATTLIST forward d CDATA #IMPLIED
  14. t CDATA #IMPLIED>
  15. <!ELEMENT turn EMPTY>
  16. <!ATTLIST turn angle CDATA #REQUIRED>
  17. <!ELEMENT wait EMPTY>
  18. <!ATTLIST wait t CDATA #REQUIRED>
  19. <!ELEMENT moveto EMPTY>
  20. <!ATTLIST moveto x CDATA #IMPLIED
  21. y CDATA #IMPLIED
  22. t CDATA #IMPLIED>
  23. <!ELEMENT moveby EMPTY>
  24. <!ATTLIST moveby x CDATA #IMPLIED
  25. y CDATA #IMPLIED
  26. t CDATA #IMPLIED>