Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!

Olaf Van Schlacht

Member Since 16 Dec 2011
Offline Last Active Feb 18 2015 02:21 AM

Posts I've Made

In Topic: How can i make objects have completely different outcomes?

08 September 2014 - 05:57 AM



What I understand is that your trying to add new behaviour to items without creating a large item class filled up with boolean flags indicating which behaviours the item owner has.


When I had to create a system for random item properties (Extra Damage, % Damage increase) I came up with the idea of using the decorator design pattern which allows you to create new item behaviour without the construction of deep hierachies and large classes. (http://en.wikipedia.org/wiki/Decorator_pattern


Maybe you want to take a look at this pattern.


You could have some kind of MagicItem class which has a reference to its owner and a method which can manipulate his owner (Add new skills or stats). Now this method can be overriden by the decorating items which can add additional behaviour or complete new behaviour.


The method could make something like this:

owner.skillset.addSkill(new FlyingAbility());


Hope this helps.


Best Regards

In Topic: Free game engine suggestions for a single-player top-down 2D RPG?

25 August 2014 - 01:55 AM



if you are considering Java then take a look at http://libgdx.badlogicgames.com/ (LIBGDX). It already comes with a tiled parser https://github.com/libgdx/libgdx/wiki/Tile-maps so you wont have to bother with your own tile map format.


Libgdx also prodivdes other useful tools for creating UI components https://github.com/libgdx/libgdx/wiki/Scene2d.ui.


With the newest version 1.3.0 you could also use the integrated entity component system of libgdx (Ashley) but if you start programming I think the best way to learn is using the object oriented approach.


There are also some examples of good design patterns for your code which maybe help you out in some situations. Take a look at this site if you want to know more.



I hope you take a look at this information and maybe we will see some progress of you in the future.


Happy coding!

In Topic: Modern C++ looking for information

08 May 2014 - 03:41 AM

Thanks everyone for the resources, I'll gonna have a look at them!


I've already got some questions regarding some Java standards and how they are solved in C++.



I'm totally used to create my Java classes in POJO manner. That means almost every member of my class will have a getter/setter method for accessing it. I've read that in C++ getters/setters are evil and break the rule of data encapsulation. In eclipse I've got a function to automatically create getters/setters but somehow in visual studio im missing that function. Any advice here?



It feels like visual studio is missing alot features from eclipse. For example:

-Ctrl + O - Opens a context menu with all class members / functions listed (Outline)

-Ctrl + Alt + Arrow - Copies the current selected line

-Ctrl + 1 - Opens  the context help menu


Anyone knows a guide for visual studio hot keys and shortcuts?


Best Regards


In Topic: Looking for the right application to develop a Lobby

17 February 2014 - 11:25 AM

Going with Java seems the easier way.

Depending if you want to dive into the Socket API in Java you could also take a look at the framework Kryonet: https://code.google.com/p/kryonet/

In Topic: Free flow-chart programs?

06 November 2013 - 01:42 PM



I personally use this little tool called yEd for brainstorming my ideas and prototyping some things.