Enum wrapper class
Posted by s3283777 on 2012-03-21 17:30
So it turns out enums can't be declared in an interface. Thus, it is now a class. The enum values can be accessed as:
You don't need to include the Stroke class, it should be accessible as is.
Also, Brett, you'll need to include a method with the stub:
I'll be saving a reference to your class and calling that method to send a recorded gesture stroke.
Stroke.u; //up
Stroke.l; //left
Stroke.r; //right
Stroke.d; //down
Stroke.ul; //up-left
Stroke.ur; //up-right
Stroke.dl; //down-left
Stroke.dr; //down-right
Stroke.n; //no gesture
You don't need to include the Stroke class, it should be accessible as is.
Also, Brett, you'll need to include a method with the stub:
public void recordGesture(int playerID, StrokeDirection s);
I'll be saving a reference to your class and calling that method to send a recorded gesture stroke.
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Pistol pete and the dudes is powered by Assembla.
2 Comments
By s3283777 on 2012-03-24 15:30
By s3283777 on 2012-03-24 19:21
As per the commit message, there's a direction classifier in there too. It has trouble with noise, specifically at the point where one stroke ends and the next begins. The diagonal classification isn't too hot either.