YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Is there something like prototypes in Squirrel?
Kelvin
#1 Posted : Wednesday, December 12, 2018 5:52:01 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/26/2015(UTC)
Posts: 50
Man
Location: Georgia

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
My concern is what if I make two classes or something that are co-dependant; both of them need to know something about each other? Like, if a player object needs to do something when it collides with an item, the easy answer is to define the item first, but if an enemy needs to behave based on the player's position, but the player also needs to be able to act on the enemy, you can't define them in parallel. Something like this would be solved with a prototype, because it tells the system "don't worry; that doesn't exist yet, but it will". Is there some way to tell Squirrel the same thing?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.075 seconds.