C# 클래스 GPSTD_RM.Creep

This is the superclass of all enemies in the game.
상속: GameObject
파일 보기 프로젝트 열기: dideler/gps-tower-defense 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SLOW_DECAY System.TimeSpan
currentLinkBox Microsoft.Xna.Framework.BoundingBox

공개 메소드들

메소드 설명
Creep ( Microsoft.Xna.Framework.Game game ) : System

Fairly basic initialization.

ReceiveDamage ( int damageValue ) : void

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.

Update ( GameTime time ) : void

Basic update logic for all creeps.

비공개 메소드들

메소드 설명
PassedPoint ( ) : bool

Has the creep passed a point along the path?

UpdateBox ( ) : void

Updates the bounding rectangle defined by the current link.

메소드 상세

Creep() 공개 메소드

Fairly basic initialization.
public Creep ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game The game containing this object.
리턴 System

ReceiveDamage() 공개 메소드

Called by projectiles to attempt to damage the enemy. The enemy provides its own implementation of how to get damaged. This default should serve most purposes.
public ReceiveDamage ( int damageValue ) : void
damageValue int Damage value.
리턴 void

Update() 공개 메소드

Basic update logic for all creeps.
public Update ( GameTime time ) : void
time Microsoft.Xna.Framework.GameTime Current game time.
리턴 void

프로퍼티 상세

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

The amount of time it takes for a slow counter to wear off
public static TimeSpan,System SLOW_DECAY
리턴 System.TimeSpan

currentLinkBox 공개적으로 프로퍼티

Bounding rectangle defined by the current link.
public BoundingBox,Microsoft.Xna.Framework currentLinkBox
리턴 Microsoft.Xna.Framework.BoundingBox