Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkEngine - True OOP with DGDK.NET

Author
Message
Dark Inferno Studios
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: United Kingdom
Posted: 9th Apr 2008 00:55
Hi,
This is my OOP library similar to LightEngine but it has more functionality.

It has more properties and less methods, e.g.:
In LE you have to do object.Position(6, object.X, object.Z), but in DarkEngine: object.X = 6. There is no more Position methods anymore.

Also, it uses C# 3.0 and VB.NET 9.0 functionality, e.g.:
Color.ToDGDKColor() or uint.ToNETColor(), it is shown in the sample.

Download here: http://www.darkinferno.com/DarkEngine0.3.0.0.rar

Thanks.
-Dark Inferno
kBessa
17
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 9th Apr 2008 02:28
Hi Dark Inferno,

Didn't download your library but, I must say that any attempt to make an OOP library is very nice!

The "myObject.X = 6;" was thought about when making LE, and even discussed in the forums.

But an advice: If inside the "set" of X, Y and Z properties you call Position(value, oldY, oldX), imagine a scene where you have 50 non-static objects that get changes do all X, Y and Z properties, you'd be calling Position 3 times, 2 of them unnecessary, don't you agree?
monotonic
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Nottinghamshire, England
Posted: 9th Apr 2008 02:50
Quote: "you'd be calling Position 3 times, 2 of them unnecessary, don't you agree?"


I second that, maybe having a function and the properties so that the developer can choose which is the most appropriate would be best.

Much good work is lost for the lack of a little more.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 9th Apr 2008 02:51
Interesting comments kBessa.

I sometimes get nitty gritty (depending how motivated I am at the time) to do things like this - for example:

Object->PositionX(NewXPosition);
Object->PositionY(NewYPosition);
Object->PositionZ(NewZPosition);

and the

Object->Position(X,Y,Z);


I went bananas with the RGBA class I made. You can set and get each channel, and return or set the entire RGB and/or the entire RGBA.

In short - its wordy to write - but pays off later when you need it - its there

Good job guys. I'm definately another OOP Enthusiast

Login to post a reply

Server time is: 2024-09-29 17:26:46
Your offset time is: 2024-09-29 17:26:46