C# 클래스 Shared.Sim

Represents a Sim that can be drawn and animated. Abstraction on top of Vitaboy's AvatarBase to hold information such as whether this Sim has a house, is a child and so on.
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Camera UICamera
HasHouse bool
IsChild bool

공개 메소드들

메소드 설명
ChangeOutfit ( Outfit Oft, SkinType Skin ) : void

Change the outfit for this Sim.

Draw ( ) : void
Head ( Outfit Head, SkinType Type ) : void

Sets the head for this Sim.

SetAnimation ( Anim Animation ) : void

Sets the animation for this Sim.

Sim ( GraphicsDevice Devc, AvatarBase Avatar, bool Child = false ) : Files.Vitaboy

Creates a new Sim.

Update ( GameTime GTime ) : void

Updates this Sim, which includes advancing the current animation frame, computing bone positions and updating the avatar's position.

메소드 상세

ChangeOutfit() 공개 메소드

Change the outfit for this Sim.
public ChangeOutfit ( Outfit Oft, SkinType Skin ) : void
Oft Files.Vitaboy.Outfit The outfit to change into.
Skin SkinType The sim's skin type.
리턴 void

Draw() 공개 메소드

public Draw ( ) : void
리턴 void

Head() 공개 메소드

Sets the head for this Sim.
public Head ( Outfit Head, SkinType Type ) : void
Head Files.Vitaboy.Outfit The Appearance of the head to set.
Type SkinType
리턴 void

SetAnimation() 공개 메소드

Sets the animation for this Sim.
public SetAnimation ( Anim Animation ) : void
Animation Files.Vitaboy.Anim The animation to play.
리턴 void

Sim() 공개 메소드

Creates a new Sim.
public Sim ( GraphicsDevice Devc, AvatarBase Avatar, bool Child = false ) : Files.Vitaboy
Devc GraphicsDevice A GraphicsDevice instance.
Avatar Vitaboy.AvatarBase The Avatar used for this sim (can be AdultAvatar, ChildAvatar, DogAvatar or CatAvatar.
Child bool Is this Sim a child?
리턴 Files.Vitaboy

Update() 공개 메소드

Updates this Sim, which includes advancing the current animation frame, computing bone positions and updating the avatar's position.
public Update ( GameTime GTime ) : void
GTime Microsoft.Xna.Framework.GameTime A GameTime instance.
리턴 void

프로퍼티 상세

Camera 공개적으로 프로퍼티

public UICamera,Shared Camera
리턴 UICamera

HasHouse 공개적으로 프로퍼티

public bool HasHouse
리턴 bool

IsChild 공개적으로 프로퍼티

public bool IsChild
리턴 bool