RSS

(root)/iphone/common : 61 : Jigs/source/JigsawPiece.h

To get this branch, use:
bzr branch /browse/iphone/common

« back to all changes in this revision

Viewing changes to Jigs/source/JigsawPiece.h

Dömötör Gulyás
2010-01-18 09:03:51
Revision ID: dognotdog@gmail.com-20100118080351-ib2knxvk4w8ssw3h
made common a nested tree

Show diffs side-by-side

added added

removed removed

1
 
//
2
 
//  JigsawPiece.h
3
 
//  Jigs
4
 
//
5
 
//  Created by döme on 06.08.2009.
6
 
//  Copyright 2009 __MyCompanyName__. All rights reserved.
7
 
//
8
 
 
9
 
#import <Foundation/Foundation.h>
10
 
 
11
 
#import "geometry.h"
12
 
#import "chipmunk.h"
13
 
 
14
 
@class VertexArray, JigsawPiece;
15
 
 
16
 
@interface JigsawNeighbour : NSObject
17
 
{
18
 
        CGPoint                 attachmentPoint;
19
 
        int                             direction;
20
 
//      JigsawPiece*    piece;
21
 
}
22
 
 
23
 
@property(assign) CGPoint attachmentPoint;
24
 
@property(assign) int direction;
25
 
//@property(assign) JigsawPiece* piece;
26
 
 
27
 
@end
28
 
 
29
 
@interface JigsawPiece : NSObject
30
 
{
31
 
//      VertexArray*    fillDrawable;
32
 
//      VertexArray*    outlineDrawable;
33
 
//      m16                             drawableTransform;
34
 
 
35
 
        NSMutableArray* outlines;
36
 
        
37
 
        CGPoint                 initialPos;
38
 
        CGPoint                 position;
39
 
        float                   orientation;
40
 
        
41
 
        NSMutableDictionary* neighbours;
42
 
        NSMutableArray* fillDrawables;
43
 
        NSMutableArray* outlineDrawables;
44
 
        
45
 
        v3                              outlineColor;
46
 
        float                   ghostZoom;
47
 
        
48
 
//      cpBody*                 body;
49
 
}
50
 
 
51
 
- (void) rotateByAngle: (float) alpha aroundPoint: (CGPoint) p;
52
 
 
53
 
@property(readonly) v3 outlineColor;
54
 
- (void) setOutlineColor: (v3*) cptr;
55
 
 
56
 
//@property(readonly) cpBody* body;
57
 
 
58
 
@property(assign) CGPoint initialPos;
59
 
@property(assign) CGPoint position;
60
 
@property(assign) float orientation;
61
 
 
62
 
@property(assign) float ghostZoom;
63
 
 
64
 
//@property(assign) m16 drawableTransform;
65
 
 
66
 
//@property(retain) VertexArray* fillDrawable;
67
 
//@property(retain) VertexArray* outlineDrawable;
68
 
//@property(assign) CGPathRef outline;
69
 
 
70
 
@property(readonly) NSMutableDictionary* neighbours;
71
 
@property(readonly) NSMutableArray* fillDrawables;
72
 
@property(readonly) NSMutableArray* outlineDrawables;
73
 
@property(readonly) NSMutableArray* outlines;
74
 
 
75
 
@end

Loggerhead 1.17 is a web-based interface for Bazaar branches