Свойство | Type | Description | |
---|---|---|---|
alive | bool | ||
area | |||
frame | Point | ||
health | int | ||
imageArea | Rectangle | ||
imageIndex | float | ||
name | string | ||
objSpriteDB | Texture2D>.Dictionary | ||
position | Vector2 | ||
rotation | float | ||
scale | float | ||
sprite | Texture2D | ||
velocity | Vector2 |
Свойство | Type | Description | |
---|---|---|---|
imageNumber | int | ||
imageSpeed | float |
Méthode | Description | |
---|---|---|
Collision ( |
||
Collision ( Vector2 pos, |
||
Collision ( Vector2 pos, bool checkSolids ) : bool | ||
Damage ( int damage ) : void | ||
Draw ( |
||
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 |
public Collision ( Vector2 pos, |
||
pos | Vector2 | |
obj | ||
Résultat | bool |
public Collision ( Vector2 pos, bool checkSolids ) : bool | ||
pos | Vector2 | |
checkSolids | bool | |
Résultat | bool |
public Draw ( |
||
spriteBatch | ||
Résultat | void |
public static InitSpriteDB ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
Résultat | void |
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
Résultat | void |
public PushTo ( Vector2 velocity, float direction ) : void | ||
velocity | Vector2 | |
direction | float | |
Résultat | void |
public pointDirection ( Vector2 first, Vector2 second ) : float | ||
first | Vector2 | |
second | Vector2 | |
Résultat | float |
public pointDistance ( Vector2 first, Vector2 second ) : float | ||
first | Vector2 | |
second | Vector2 | |
Résultat | float |
public Rectangle,Microsoft.Xna.Framework area | ||
Résultat |
public static Dictionary |
||
Résultat | Texture2D>.Dictionary |