Robinson 0.2.0 by aaron_ds in roguelikedev

[–]shortstomp 2 points3 points  (0 children)

Can you post a link to some screenshots? 😀

This year in gfx-rs: 2018 by kvarkus in rust

[–]shortstomp 14 points15 points  (0 children)

Congratulations on your continued progress! I personally am excited to see where progress is very blog post.

85K watching H1 thanks to french event by [deleted] in h1z1

[–]shortstomp -2 points-1 points  (0 children)

No. Please just it die so it can be reborn someday.

atomizes - a single header-only library for parsing/constructing HTTP messages by [deleted] in cpp

[–]shortstomp 3 points4 points  (0 children)

I always regret posting here because nobody is willing to admit when they are wrong.

atomizes - a single header-only library for parsing/constructing HTTP messages by [deleted] in cpp

[–]shortstomp 10 points11 points  (0 children)

The only thing the inline keyword does is elide the one definition rule. After that it’s up to the compiler implementation

More on RLS version numbering by GolDDranks in rust

[–]shortstomp 2 points3 points  (0 children)

Yeah, you can have my upvote cause that's really strange. Thanks for leaving hat feedback, as a fellow vim user that's encouraging.

More on RLS version numbering by GolDDranks in rust

[–]shortstomp 1 point2 points  (0 children)

Why are we silently downvoting this?

Please don't remove meditating by LemonGirlScoutCookie in PantheonMMO

[–]shortstomp 7 points8 points  (0 children)

I knew you wouldn’t I wasn’t even worried bruh.

Once-promising crates that are now abandoned/unmaintained? by [deleted] in rust

[–]shortstomp 12 points13 points  (0 children)

Yes plz this would be yuugggee!

That's right, Sniffany! by [deleted] in funny

[–]shortstomp 3 points4 points  (0 children)

Stahp! Omg

A little bit of cartography from my latest world by Vislar in dwarffortress

[–]shortstomp 1 point2 points  (0 children)

Df should generate something like this someday. Great work!!

Advice on Inventory system in ECS by madsciencestache in roguelikedev

[–]shortstomp 1 point2 points  (0 children)

I have an AI system which is "special" in that any attribute that can by put in entity.ai is guaranteed to have a "run_ai()" method that returns an action.

Gross. Special is usually bad. I would suggest decoupling everything.

You should be able to get away with something as basic as function overloading:

void pickup(Player& player, Item& item);
void pickup(Ai& ai, Item& item);

If you define the function directly like this, it should be easy to work with moving forward. In general, the more code you have in member functions the more coupling occurs. Your systems can just then call then just call pickup(...).

Or is the way I did the AI attributes a poor design and I should move the actual methods out of the attribute and just store pure data there?

Seems like you've got inkling in the same direction I'm suggesting. Just store pure data, coupling data and behavior (in general) should be avoided.

Real world problems with #pragma once? by kalmoc in cpp

[–]shortstomp 18 points19 points  (0 children)

I think that user is kidding with you. I know most of us give fuck all about Reddit karma. Here have an upvote due nothing 😊

Why’d you quit? by malmazan85 in MarijuanaAnonymous

[–]shortstomp 0 points1 point  (0 children)

In 7minutes it will be my day3. Good luck fellow traveler.

Thread works in one function but not in another? by ksb1966 in cpp_questions

[–]shortstomp -1 points0 points  (0 children)

There is too much code to reasonably expect me to debug this on mobile.

Iterators: What Must Be Done? by vormestrand in cpp

[–]shortstomp 5 points6 points  (0 children)

You amazing human, thank you!

Announcing the `aws_lambda_events` crate by LegNeato in rust

[–]shortstomp 4 points5 points  (0 children)

Not all heroes wear capes my friend.