CIS 3100 Introduction to Programming Using Virtual Reality

Steps to perform to view the alice galleries 1 you

Info icon This preview shows pages 23–26. Sign up to view the full content.

View Full Document Right Arrow Icon
~~~ Steps to Perform ~~~ To view the Alice galleries: 1. You should already be able to see the Local Gallery, as described above. You are going to explore the galleries a bit before preparing to add objects to your new world. Click the folder icon in the navigation Figure 1-8 . The top level in the tree of object galleries.
Image of page 23

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

View Full Document Right Arrow Icon
Alice – Chapter 1 DRAFT June 10, 2013 pg. 24 of 38 bar to move up one level in the tree of galleries, so that you can see the top level in the tree, as seen in Figure 1-8. Two icons are visible: one for the Local Gallery and one for the Web gallery. 2. Click the Local Gallery icon to go back to the Local Gallery. Scroll left and right through the Local Gallery using the controls below the gallery folders, and you will see some of the many categories of objects available in Alice. 3. Find the icon for the Animals folder and click on it to open the folder. Scroll left and right through this gallery to see some of the animal objects available in Alice. Object Classes and Instances in Alice Each of the tiles in the Animals folder represents a class of objects. A class is a group of objects with the same properties and the same methods. Objects in the same class are virtually identical to each other, except that the values stored in some of their properties may be different. For example, you could have an Alice world with two Penguin objects. They would both have the same methods and the same properties, but the values of some of those properties, such as location or color, might be different. Each copy of an object from a particular class is called an instance of the object. The two penguins described in the last paragraph are two instances of the penguin class of objects. As you use Alice, you will notice that the object class tiles in the object galleries have the word class in their title and each begin with a capital letter, such as Class Bunny or Class Chicken , but once an instance of an object is placed in a particular Alice world its name begins with a lowercase letter. Of course, it is possible to rename objects, so this distinction is not always maintained.
Image of page 24
Alice – Chapter 1 DRAFT June 10, 2013 pg. 25 of 38 The act of adding an instance of an object class to an Alice world is called instantiation. The same terminology – classes, instances and instantiation – is used in most object–oriented programming languages. You are going to add an instance of the first object in the first object folder in the Local Gallery to your new Alice world. You are going to instantiate a Bunny class object. ~~~ Steps to Perform ~~~ To add an instance of the bunny class of objects to your world: 1. Click the Class Bunny icon. A window with information about Bunny class objects, like the one in Figure 1-9, should appear. 2. Click the Add instance to world button to put a bunny into the world. This is sometimes called dropping an object into the world. You should see a bunny appear in the center of the World window.
Image of page 25

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

View Full Document Right Arrow Icon
Image of page 26
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