{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Class 4 - Methods continued 1 Goals for Today n n n Reuse a...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Methods, continued 1
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Goals for Today n Reuse a class-level method in multiple worlds n Use dummies to reposition the camera for different shots within a scene n Understand how an object’s position, orientation, and point of view are determined 2 MGMT 290D
Image of page 2
Alice Tip: Reusing Your Work n Copy and paste techniques speed up development n How to use make copy to duplicate statements ¨ Right-click bar in editing area containing method ¨ Select make copy n Example using make copy ¨ Refer to my_first_method() in Toy Soldier program ¨ Copy three march() statements from first march() 3 MGMT 290D
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Alice Tip: Reusing Your Work (continued) 4 MGMT 290D
Image of page 4
Using the Clipboard n Alice clipboard ¨ Used to copy and paste all statement types ¨ Located in the events area n Using Alice clipboard in Toy Soldier program ¨ Drag doInOrder in my_first_method() to clipboard ¨ Create scene1() method ¨ Drag statement in clipboard to editing area ¨ Drop statement in the scene1() method n Only one statement may be placed in the clipboard n You can increase the number of available clipboards 5 MGMT 290D
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Using the Clipboard (continued) 6 MGMT 290D
Image of page 6
Using the Clipboard (continued) 7 MGMT 290D
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Reusing an Object in a Different World n Alice lets you reuse objects in different worlds n Reusing operation involves save and import tasks n How to save the dragon object ¨ Rename the dragon object flappingDragon ¨ Right-click flappingDragon , select save object… ¨ Navigate to appropriate storage location in the directory ¨ Click the Save button n How to import an object into a new world ¨ Open new world and choose Import from File menu ¨ Navigate to object location and select .a2c file 8 MGMT 290D
Image of page 8
Reusing an Object in a Different World (continued) 9 MGMT 290D
Image of page 9

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Reusing an Object in a Different World (continued) 10 MGMT 290D
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern