Results 1 to 14 of 14

Thread: firefox extension testing

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    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
    
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: firefox extension testing

    sdfsdfdsfsf
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: firefox extension testing

    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: firefox extension testing

    beeauh
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    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
    }

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: firefox extension testing

    Workslikeacharm...:)

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: firefox extension testing

    Ohhh...was that a bug...let me test again...


    Works like a charm....



    Workslikeacharm......:)


    Workslikeacharm...:)

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: firefox extension testing

    It takes away the spaces...

  9. #9
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: firefox extension testing

    Quote Originally Posted by NoteMe
    It takes away the spaces...
    Thief!


    Has someone helped you? Then you can Rate their helpful post.

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: firefox extension testing

    Cander is the thief..

  11. #11
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    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

  12. #12

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  13. #13
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: firefox extension testing

    Waiting with baited breath.
    I don't live here any more.

  14. #14

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Re: firefox extension testing

    Already been fixed wossy. Just see the thread in Chit Chat.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width