KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to implement a design as follows: Touch class : acts as an interface, several classes inherit from it: MoveTouch class JumpTouch class InterfaceTouch class Then I want to have a list of Touch objects. I then want to be able to strip out all the MoveTouch objects ONLY (not the other ones), and then all the JumpTouch objects separately, etc., out of this big list. Unfortunately, for (MoveTouch* t in touches) does not do what I want; everything in the entire list gets acted upon.
Tags (comma-separated)
Save Edits
Cancel