This code will roundhouse kick you.

Discussion about everything. New games, 3d math, development tips...
Anteater
Posts: 266
Joined: Thu Jun 01, 2006 4:02 pm
Location: Earth
Contact:

This code will roundhouse kick you.

Post by Anteater »

Code: Select all

void goToBattle(int room_current,ITexture* texasRanger, ITexture* walker)
{
	pc[0].movie = true;
	menuI = guie->addImage(texasRanger, position2d<s32>(0,0), false, NULL, -1,L"BATTLE");
	battle = true;
}
:D
Strong99
Admin
Posts: 687
Joined: Fri Mar 31, 2006 7:06 pm
Location: Netherlands
Contact:

Post by Strong99 »

Could you explain why?
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

strong99 wrote:Could you explain why?
:lol: dont you know chuck norris?
ErUs
Posts: 165
Joined: Thu Oct 07, 2004 6:13 pm

Post by ErUs »

its not even in a class :O
OOP is your friend
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

If you can see this code, this code can see you.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

For the longest time, I couldn't figure out why the following loop would only execute once.

Code: Select all

while (you->isAlive())
  chuck->roundHouseKickToTheFace(you);
Then I found out all about Chuck Norris... Now I understand. I've since changed to loop to a simple if.

Travis
gfxstyler
Posts: 222
Joined: Tue Apr 18, 2006 11:47 pm

Post by gfxstyler »

LOL! :D
RapchikProgrammer
Posts: 279
Joined: Fri Dec 24, 2004 6:37 pm

Post by RapchikProgrammer »

AHAHAHAHAHA! :lol:
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

class brucelee
{

void superBadassKirateMode(bool true);
void recoverFromCripplingBackInjury(bool true);
void createOwnFightingStyle(bool true);
void enterTheDragon(bool true);
void WhipChuckNorris'sAss(bool true);

class chucknorris : public brucelee
{
void dreamAboutBeingBrucelee(bool true);
}

class brandonlee : public bruclee
{
bool isTheCrow = 1;
void shootInHead(this);
}

}

8)
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Sorry midnight, but that won't work. You mix up function declaration and call - you cannot name a parameter true or false and you cannot call the function with "bool true". Adn you have different base classes which does not seem to be intended.
zeno60
Posts: 342
Joined: Sun May 21, 2006 2:48 am
Location: NC, USA
Contact:

Post by zeno60 »

hybrid wrote:Sorry midnight, but that won't work. You mix up function declaration and call - you cannot name a parameter true or false and you cannot call the function with "bool true". Adn you have different base classes which does not seem to be intended.
Image

Owned.
kburkhart84
Posts: 277
Joined: Thu Dec 15, 2005 6:11 pm

Post by kburkhart84 »

zeno60 wrote:
hybrid wrote:Sorry midnight, but that won't work. You mix up function declaration and call - you cannot name a parameter true or false and you cannot call the function with "bool true". Adn you have different base classes which does not seem to be intended.
Image

Owned.
Damn that would suck. It happens to us humans more than you would think though.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

zeno60 wrote:
hybrid wrote:Sorry midnight, but that won't work. You mix up function declaration and call - you cannot name a parameter true or false and you cannot call the function with "bool true". Adn you have different base classes which does not seem to be intended.
<image removed>

Owned.
This post obviously is for fun and not about an exercise in C++. I think Midnight's post makes a very good point. Chuck Norris would get his ass kicked by Bruce Lee.
Last edited by Spintz on Sun Mar 04, 2007 2:38 pm, edited 1 time in total.
Image
sio2
Competition winner
Posts: 1003
Joined: Thu Sep 21, 2006 5:33 pm
Location: UK

Post by sio2 »

Spintz wrote:This post obviously is for fun and not about an exercise in C++. I think Midnight's post makes a very good point. Chuck Norris would get his ***** kicked by Bruce Lee.
Bruce starts an attack and his screen goes blue dues to Midnight's bad coding. Chuck gets his attack in while Bruce is waiting to reboot. :lol:

This thread is surreal... :twisted:
TheRLG
Posts: 372
Joined: Thu Oct 07, 2004 11:20 pm

Post by TheRLG »

Bruce Lee kick Chuck's ass?

Didn't you know? Chuck Norris ATE Bruce Lee years ago (with fava beans and a nice ciante), therefore absorbing all his power and kickassness. That is the only reason that he can roundhouse-kick people. :twisted:
Post Reply