//
// HBSnake.h
// Hebi
//
// Created by Michael Shannon Potter on 2/18/11.
// Copyright 2011 LucasTizma.com. All rights reserved.
//
#import "HBSnakeSegment.h"
typedef enum HBSnakeMovementDirection
{
HBSnakeMovementDirectionUp = 1, // Default movement direction upon initialization via -init
HBSnakeMovementDirectionDown = 2,
HBSnakeMovementDirectionLeft = 4,
HBSnakeMovementDirectionRight = 5
}
HBSnakeMovementDirection;
@interface HBSnake : NSObject
@property (nonatomic, retain, readonly) NSArray * segments;
@property (nonatomic, readonly) HBSnakeSegment * headSegment;
@property (nonatomic, assign, readonly) HBSnakeMovementDirection movementDirection;
+ (id)snakeWithStartingPosition:(CGPoint)startingPosition movementDirection:(HBSnakeMovementDirection)movementDirection
numberOfBodySegments:(NSUInteger)numberOfBodySegments;
- (id)initWithStartingPosition:(CGPoint)startingPosition movementDirection:(HBSnakeMovementDirection)movementDirection
numberOfBodySegments:(NSUInteger)numberOfBodySegments;
- (void)moveForward;
- (void)addBodySegment;
- (void)attemptMovementDirectionChange:(HBSnakeMovementDirection)newMovementDirection;
- (BOOL)doesContainSegmentAtPosition:(CGPoint)position;
- (BOOL)didCollideWithSelf;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——LucasTizma-Hebi-v1.0-1-g3b4e198.zip
共63个文件
h:21个
m:21个
png:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 25 浏览量
2023-07-05
23:18:02
上传
评论
收藏 2.86MB ZIP 举报
温馨提示
iOS游戏应用源代码——LucasTizma-Hebi-v1.0-1-g3b4e198.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——LucasTizma-Hebi-v1.0-1-g3b4e198.zip (63个子文件)
LucasTizma-Hebi-3b4e198
Hebi.xcodeproj
mspotter.mode1v3 46KB
project.pbxproj 31KB
michael.potter.pbxuser 17KB
michael.potter.mode1v3 41KB
mspotter.pbxuser 193KB
README.markdown 0B
Other Sources
Hebi_Prefix.pch 279B
main.m 348B
Launch Image.psd 2.59MB
Resources
Plists
Hebi-Info.plist 1KB
HBUserDefaults.plist 266B
Images
[email protected] 470KB
[email protected] 483KB
Icon.png 8KB
[email protected] 21KB
Default.png 124KB
HBTitleViewBackground.png 125KB
Nibs
HBOptionsViewController.xib 32KB
HBGameViewController.xib 385KB
HBTitleViewController.xib 23KB
MainWindow.xib 803KB
Classes
UIAlertView+LTAdditions.m 2KB
HBGlobalDefinitions.h 425B
HBGrid.m 4KB
HBBarrierGridObject.h 254B
HBSnakeSegment.m 833B
HBGameViewController.h 843B
HBOptionsViewController.h 638B
HBSnakeSegment.h 546B
NSUserDefaults+HBOptions.m 827B
HBOptionsViewController.m 2KB
HBGridObject.m 885B
HBSnake.h 1KB
UIViewController+LTAdditions.h 255B
UIViewController+LTAdditions.m 451B
HBGridView.m 2KB
NSUserDefaults+HBOptions.h 300B
UIColor+LTAdditions.h 394B
HBTitleViewController.h 274B
UITableView+LTAdditions.m 720B
HBGridObject.h 623B
HBGrid.h 681B
UITableView+LTAdditions.h 308B
HBGameViewController.m 8KB
HBSnakeView.m 4KB
HBSnakeView.h 533B
HBBackgroundView.m 3KB
HBGrowSnakeGridObject.h 260B
UIColor+LTAdditions.m 696B
HBTitleViewController.m 1KB
HBGrowSnakeGridObject.m 1KB
HBGlobalReferences.h 423B
HBBackgroundView.h 190B
HebiAppDelegate.h 385B
HBSnake.m 6KB
UIGestureRecognizer+LTAdditions.m 541B
UIAlertView+LTAdditions.h 1KB
HBGridView.h 244B
UIGestureRecognizer+LTAdditions.h 304B
HBGlobalDefinitions.m 459B
HBBarrierGridObject.m 1KB
HebiAppDelegate.m 1KB
.gitignore 33B
共 63 条
- 1
资源评论
快乐无限出发
- 粉丝: 1135
- 资源: 7277
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功