|
-
Jan 28th, 2005, 11:23 AM
#1
firefox extension testing
Dont mind me.
Code:
#ifndef CHARACTER_H
#define CHARACTER_H
#include "sprite.h"
struct keyMap
{
char up;
char down;
char left;
char right;
char attack;
};
class Character : public Sprite
{
public:
Character(Level *l, DrawEngine *de, int s_index, float x = 1, float y = 1, int lives = 3);
virtual bool keyPress(char c);
virtual void addLives(int nlives = 1);
keyMap keys;
protected:
private:
};
#endif
-
Jan 28th, 2005, 11:24 AM
#2
Re: firefox extension testing
-
Jan 28th, 2005, 11:25 AM
#3
Re: firefox extension testing
-
Jan 28th, 2005, 11:26 AM
#4
Re: firefox extension testing
-
Jan 28th, 2005, 03:58 PM
#5
Re: firefox extension testing
Code:
bool InsidePolygon(CVector3 vIntersection, CVector3 Poly[], long verticeCount){
const double MATCH_FACTOR = 0.9999; // Used to cover up the error in floating point
double Angle = 0.0; // Initialize the angle
CVector3 vA, vB; // Create temp vectors
for (int i = 0; i < verticeCount; i++) // Go in a circle to each vertex and get the angle between
{
vA = Vector(Poly[i], vIntersection); // Subtract the intersection point from the current vertex
// Subtract the point from the next vertex
vB = Vector(Poly[(i + 1) % verticeCount], vIntersection);
Angle += AngleBetweenVectors(vA, vB); // Find the angle between the 2 vectors and add them all up as we go along
}
if(Angle >= (MATCH_FACTOR * (2.0 * PI)) ) // If the angle is greater than 2 PI, (360 degrees)
return true; // The point is inside of the polygon
return false; // If you get here, it obviously wasn't inside the polygon, so Return FALSE
}
-
Jan 28th, 2005, 03:59 PM
#6
Re: firefox extension testing
-
Jan 28th, 2005, 04:00 PM
#7
Re: firefox extension testing
Ohhh...was that a bug...let me test again...
Works like a charm....
Workslikeacharm......:)
Workslikeacharm...:)
-
Jan 28th, 2005, 04:00 PM
#8
Re: firefox extension testing
It takes away the spaces...
-
Jan 28th, 2005, 06:22 PM
#9
-
Jan 28th, 2005, 06:25 PM
#10
Re: firefox extension testing
Cander is the thief..
-
Jan 31st, 2005, 08:02 AM
#11
Hyperactive Member
Re: firefox extension testing
Thanks Cander
for this nice FF-Extension!
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jan 31st, 2005, 09:34 AM
#12
Re: firefox extension testing
Its the forum itself that is stripping out the spaces after submitting.
Ill have to come up with a workaroun d if I can.
-
Feb 1st, 2005, 09:07 AM
#13
Re: firefox extension testing
Waiting with baited breath.
I don't live here any more.
-
Feb 1st, 2005, 09:46 AM
#14
Re: firefox extension testing
Already been fixed wossy. Just see the thread in Chit Chat.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|