Jump to content

  • Log In with Google      Sign In   
  • Create Account

Álvaro

Member Since 07 Mar 2002
Offline Last Active Yesterday, 08:53 PM

Posts I've Made

In Topic: Curve Fitting Question

Yesterday, 04:45 PM

Yes but I specified that when I said y = ax^2 + bx + c.


Except you didn't. :)

In Topic: Curve Fitting Question

Yesterday, 07:08 AM

Although AntiTwister's post probably does answer your question, I should point out that a parabola doesn't necessarily have a vertical directrix, so it could be that your problem is underconstrained. If you are really interested in equations like y = a x^2 + b x + c, I suggest you use the term "quadratic function" instead.

In Topic: C++ Angle bracket function

24 September 2016 - 06:57 PM

Sorry for not replying for a while! I managed to get it all sorted out thanks to your help!


It would be nice if you could give us a brief description of what worked for you. That way this thread would be more helpful to people that find it in the future when they have a similar problem to yours.

In Topic: target selection strategies

24 September 2016 - 06:05 PM

The most robust strategy is to consider all targets and all interactions, and pick the best combination. Utility systems are great for this. It helps to mix in "non-targeted" actions as well (running away, healing, etc.) so you can always have something semi-reasonable to do regardless of situation.


This.

In Topic: Provide a quick code-review of c++ code?

23 September 2016 - 09:43 AM

I was reading Alberth's comments so I looked at the code starting at line 487:
	int yPos = 0;

	switch (barData.uEdge)
	{
	case ABE_LEFT:
	case ABE_RIGHT:
	{
		yPos = btnDim.top - lbH - 10;
	}
	break;
	case ABE_TOP:
	{
		yPos = btnDim.bottom + 10;
	}
	break;
	//case ABE_BOTTOM:
	default:
	{
		yPos = btnDim.top - lbH - 10;
	}
	break;
	}

How about this instead?
	int yPos = (barData.uEdge == ABE_TOP) ? btnDim.bottom + 10 : btnDim.top - lbH - 10;

PARTNERS