Search found 6 matches

by colorlessquark
September 2nd, 2020, 12:12 am
Forum: Everything
Topic: Advance Techniques for Resolving Circular Dependancies?
Replies: 11
Views: 7608

Re: Advance Techniques for Resolving Circular Dependancies?

Ok, thanks. Now I have something that starts to resemble something working. It still looks like a lot to get add more attacks/enemy types, but far better than other ideas I had. And I just realized the "Project Twin" series is in fact not a JRPG, but precisely the thing I should be looking at (actio...
by colorlessquark
August 18th, 2020, 9:05 pm
Forum: Everything
Topic: Advance Techniques for Resolving Circular Dependancies?
Replies: 11
Views: 7608

Re: Advance Techniques for Resolving Circular Dependancies?

I tried to implement the Visitor design and I run into circular dependencies again- though I think it's because of my particular implementation. The problem is "Entities create Attacks" and "Attacks are visitors to Entities". I think I could fix it if I use a single header file for Attacks and Entit...
by colorlessquark
August 15th, 2020, 6:37 pm
Forum: Everything
Topic: Advance Techniques for Resolving Circular Dependancies?
Replies: 11
Views: 7608

Re: Advance Techniques for Resolving Circular Dependancies?

I think I mostly get it- enough to try it out at least. The things I don't understand is that Visitor Design is billed to extend functionality, but all I see is encapsulation. If I use HitEntity action, it basically can seal away the interface for doing damage (good encapsulation- if you want to cha...
by colorlessquark
August 15th, 2020, 6:26 pm
Forum: Everything
Topic: Problems with git & other
Replies: 6
Views: 7093

Re: Problems with git & other

I messed around with Git, but in my run though the tutorial, I started without a clone (I downloaded the files and built the repository "from scratch-ish" that way). I found that I can't use a remote to my repository to upload the "master" branch, but a locally created branch is fine. This leaves my...
by colorlessquark
August 14th, 2020, 12:14 pm
Forum: Everything
Topic: Advance Techniques for Resolving Circular Dependancies?
Replies: 11
Views: 7608

Re: Advance Techniques for Resolving Circular Dependancies?

I've been considering a bridge class for attacking after I posted this, and thought something that takes some sort of "attack signature" (includes "type" info, and a bunch of flags that indicate any special effects like stunning) and a "defense signature" (basically immunity flags) inspired by the b...
by colorlessquark
August 14th, 2020, 1:33 am
Forum: Everything
Topic: Advance Techniques for Resolving Circular Dependancies?
Replies: 11
Views: 7608

Advance Techniques for Resolving Circular Dependancies?

I'm trying to plot out the mechanics for a Zelda clone (mostly, just messing with seeing if I can make the mechanics right now) and am banging my head against a wall probably too hard) to resolve an issue involving some circular dependencies. I'm considering a structure like this (warning, I have no...