C# 클래스 ZombieShooter.Obj

파일 보기 프로젝트 열기: Spectrewiz/Zombie-Shooter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
alive bool
area Microsoft.Xna.Framework.Rectangle
frame Point
health int
imageArea Rectangle
imageIndex float
name string
objSpriteDB Texture2D>.Dictionary
position Vector2
rotation float
scale float
sprite Texture2D
velocity Vector2

보호된 프로퍼티들

프로퍼티 타입 설명
imageNumber int
imageSpeed float

공개 메소드들

메소드 설명
Collision ( Obj obj ) : Obj
Collision ( Vector2 pos, Obj obj ) : bool
Collision ( Vector2 pos, bool checkSolids ) : bool
Damage ( int damage ) : void
Draw ( SpriteBatch spriteBatch ) : void
InitSpriteDB ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Obj ( Vector2 position ) : System
PushTo ( Vector2 velocity, float direction ) : void
SnapToGrid ( ) : void
Update ( ) : void
UpdateArea ( ) : void
pointDirection ( Vector2 first, Vector2 second ) : float
pointDistance ( Vector2 first, Vector2 second ) : float

메소드 상세

Collision() 공개 메소드

public Collision ( Obj obj ) : Obj
obj Obj
리턴 Obj

Collision() 공개 메소드

public Collision ( Vector2 pos, Obj obj ) : bool
pos Vector2
obj Obj
리턴 bool

Collision() 공개 메소드

public Collision ( Vector2 pos, bool checkSolids ) : bool
pos Vector2
checkSolids bool
리턴 bool

Damage() 공개 메소드

public Damage ( int damage ) : void
damage int
리턴 void

Draw() 공개 메소드

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

InitSpriteDB() 공개 정적인 메소드

public static InitSpriteDB ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

LoadContent() 공개 메소드

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
리턴 void

Obj() 공개 메소드

public Obj ( Vector2 position ) : System
position Vector2
리턴 System

PushTo() 공개 메소드

public PushTo ( Vector2 velocity, float direction ) : void
velocity Vector2
direction float
리턴 void

SnapToGrid() 공개 메소드

public SnapToGrid ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

UpdateArea() 공개 메소드

public UpdateArea ( ) : void
리턴 void

pointDirection() 공개 메소드

public pointDirection ( Vector2 first, Vector2 second ) : float
first Vector2
second Vector2
리턴 float

pointDistance() 공개 메소드

public pointDistance ( Vector2 first, Vector2 second ) : float
first Vector2
second Vector2
리턴 float

프로퍼티 상세

alive 공개적으로 프로퍼티

public bool alive
리턴 bool

area 공개적으로 프로퍼티

public Rectangle,Microsoft.Xna.Framework area
리턴 Microsoft.Xna.Framework.Rectangle

frame 공개적으로 프로퍼티

public Point frame
리턴 Point

health 공개적으로 프로퍼티

public int health
리턴 int

imageArea 공개적으로 프로퍼티

public Rectangle imageArea
리턴 Rectangle

imageIndex 공개적으로 프로퍼티

public float imageIndex
리턴 float

imageNumber 보호되어 있는 프로퍼티

protected int imageNumber
리턴 int

imageSpeed 보호되어 있는 프로퍼티

protected float imageSpeed
리턴 float

name 공개적으로 프로퍼티

public string name
리턴 string

objSpriteDB 공개적으로 정적으로 프로퍼티

public static Dictionary objSpriteDB
리턴 Texture2D>.Dictionary

position 공개적으로 프로퍼티

public Vector2 position
리턴 Vector2

rotation 공개적으로 프로퍼티

public float rotation
리턴 float

scale 공개적으로 프로퍼티

public float scale
리턴 float

sprite 공개적으로 프로퍼티

public Texture2D sprite
리턴 Texture2D

velocity 공개적으로 프로퍼티

public Vector2 velocity
리턴 Vector2