# Referencing all children of a class

**URL:** <https://forum.kirupa.com/t/referencing-all-children-of-a-class/315654>\
**Category:** Uncategorized\
**Created:** [November 1, 2010, 2:08am UTC](https://forum.kirupa.com/t/referencing-all-children-of-a-class/315654 "2010-11-01T02:08:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cut\_copy\_paste](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@cut\_copy\_paste](https://forum.kirupa.com/u/cut_copy_paste)\
**Post date:** [November 1, 2010, 2:08am UTC](https://forum.kirupa.com/t/referencing-all-children-of-a-class/315654/1 "2010-11-01T02:08:08Z")

</div>

just thinking out the setup of a sidescroll/platformer…

i want the player not to fall through the floor or go through walls… i know how to hittest with a single object, but what i have is various objects that extend the class wall… if I hittest with wall will that also apply to the serrated\_floor and portcullis classes that extend wall?

thanks. just wrapping my brain around inheritence and extending and things…
