Jump to content

  • Log In with Google      Sign In   
  • Create Account


Caffeware

Member Since 03 Nov 2012
Offline Last Active Nov 19 2012 09:16 PM

Topics I've Started

What's your take on protected variables?

09 November 2012 - 03:28 PM

What's your take on protected variables?

In the context of c++, it seems most experts (Scott Meyes, Herb Sutter) think is not a good idea. I don't agree. In fact, some languages, for example Ruby, have only automatic protected variables.
It seems silly to make a 'setter' and 'getter' functions for a variable when the derived object is employ in terms of "is-a". Also, making 'setter' functions opens the variable to be manipulated from outside the object! Of course, one could make in the 'setter' protected, but isn't that 'running in a loop'?

Please, discuss.

EDIT:

Let's say I have:

[source lang="cpp"]class Shape{public: virtual void CalculateArea();private: //private! int x, y; int width, height;};class Rectangle : public Shape{public: void CalculateArea(){ /* I need width and height to calculate, but can't access it. What can I do? */ }};[/source]
If I make 'getters' for Shape class:

[source lang="cpp"]class Rectangle : public Shape{public: void CalculateArea(){ get_width(); //isn't this silly, as width is a fundamental part of Rectangle //also, now everyone knows my width! }};[/source]

Seiken Densetsu / Mana Fan Game

04 November 2012 - 12:38 AM

Hi guys, I'm new here.
I been making this game for quiet some time. The idea is to combine the assets from the Seiken Densetsu / Mana franchise into
a single game. The game will have a back-story as for why things are "mix-up". I'm thinking something in terms of the "Turtles Forever" TMNT movie.

Spoiler


Obviously, the game wiil be free to play once finished. As for now it is only a demo.

BTW: The Chrono Trigger map is only a place holder and soon will be removed!


Posted Image Posted Image Posted Image

Posted Image Posted Image Posted Image
DOWNLOAD:
http://www.picoyespu...les/mana001.zip

CONTROLS:
Run : Press Cancel key.
Open Ringmenu : Press Cancel and Confirm keys.
Attack: Trigger Confirm key.

Use can use the KEYS.exe located in the game folder to map the controls to the keyboard keys.
A standard gamepad can be used to play the game. However, buttons can't be set for the gamepad.

Field map:
Use the Direction keys to move the character.
To attack, use the Confirm key.
To run press and hold the Cancel key while using the Direction keys.
Finally, press and hold both the Confirm and Cancel keys to open the Ringmenu.
Ringmenu:
The Ringmenu is used to select healing items, to change the controlled character, and to select and use magics. The battle will keep running while the Ringmenu is open. If the character with the Ringmenu is hit by an enemy, the Ringmenu will automatically be closed.

The cotrols for the Ringmenu are the following:
Direction keys Left and Right to rotate among the icons available.
Directions keys Up and Down to change rings.
The Confirm key is used for selecting the icons. In some cases when selecting an icon, the Handcursor will appear. With the Handcursor you can select allies or foes depending on current ring.
The Cancel key will close the Ringmenu.

MAGICS:
At the moment, only the Tamber character can use magics. There are various magics, each with different reactions. For example, one will hit a single enemy, while other will hit multiple. Try them all and discover the different effects!

OBJETIVES:
The characters DO NOT earn experience points or gain levels. Nevertheless you can 'farm' items and can earn money in order to buy in the shops. A good inventory will be necessary when encountering a 'mysterious' someone!

Please tell me what you think!

PARTNERS