mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
41 lines
738 B
Mathematica
41 lines
738 B
Mathematica
|
//
|
||
|
// TouchCollection.m
|
||
|
// XNI
|
||
|
//
|
||
|
// Created by Matej Jan on 29.9.10.
|
||
|
// Copyright 2010 Retronator. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "TouchCollection.h"
|
||
|
|
||
|
#import "Retronator.Xni.Framework.Input.Touch.h"
|
||
|
|
||
|
@implementation TouchCollection
|
||
|
|
||
|
- (id) init
|
||
|
{
|
||
|
self = [super init];
|
||
|
if (self != nil) {
|
||
|
collection = [[NSMutableArray alloc] init];
|
||
|
}
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
- (int) count {
|
||
|
return [collection count];
|
||
|
}
|
||
|
|
||
|
- (TouchLocation*)objectAtIndex:(NSUInteger)index {
|
||
|
return (TouchLocation*)[collection objectAtIndex:index];
|
||
|
}
|
||
|
|
||
|
- (void)addObject:(TouchLocation*)anObject {
|
||
|
[collection addObject:anObject];
|
||
|
}
|
||
|
|
||
|
- (void)insertObject:(TouchLocation*)anObject atIndex:(NSUInteger)index {
|
||
|
[collection insertObject:anObject atIndex:index];
|
||
|
}
|
||
|
|
||
|
@end
|