This shows you the differences between two versions of the page.
en:examples:orx_scroll:scrollobjects_and_custom_classes [2023/06/21 04:52 (22 months ago)] – created sausage | en:examples:orx_scroll:scrollobjects_and_custom_classes [2023/06/21 05:01 (22 months ago)] (current) – sausage | ||
---|---|---|---|
Line 4: | Line 4: | ||
ScrollObjects are Class Templates. They provide many functions such as '' | ScrollObjects are Class Templates. They provide many functions such as '' | ||
- | If we had a scroll object class file, say: Spaceship.cpp, | + | If we had a scroll object class file, say: Spaceship.cpp, |
ScrollObject *ship = CreateObject(" | ScrollObject *ship = CreateObject(" | ||
- | This much is all pretty standard. But when you extend the Spaceship class to support extra methods, using ScrollObject as a class type will not give access to new methods. | + | This much is all pretty standard. But when you extend the Spaceship class to support extra methods, using ScrollObject as a class type will not give access to the new methods. |
- | In order to create an instance of Spaceship, which gives access to all your new methods, you need to use something like: | + | In order to create an instance of Spaceship, which gives access to all your new methods, you need to use: |
Spaceship *ship = CreateObject< | Spaceship *ship = CreateObject< |