Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by IntelliJ IDEA.
- * User: teamon
- * Date: 2009-11-07
- * Time: 15:57:46
- */
- import TUIO.TuioObject
- abstract class WnkObject {
- var x,y = 0
- var angle = 0.0
- var angleDegrees = 0
- var fxClass = ""
- def this(tobj: TuioObject) {
- this()
- x = (tobj.getX * 1024).toInt
- y = (tobj.getY * 768).toInt
- angle = tobj.getAngle
- angleDegrees = tobj.getAngleDegrees.toInt
- }
- }
- class SampleObject extends WnkObject {
- fxClass = "blah"
- }
Add Comment
Please, Sign In to add comment