C# Class 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.
Afficher le fichier Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Méthodes publiques

Свойство Type Description
Camera UICamera
HasHouse bool
IsChild bool

Méthodes publiques

Méthode Description
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.

Method Details

ChangeOutfit() public méthode

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.
Résultat void

Draw() public méthode

public Draw ( ) : void
Résultat void

Head() public méthode

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
Résultat void

SetAnimation() public méthode

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

Sim() public méthode

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?
Résultat Files.Vitaboy

Update() public méthode

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.
Résultat void

Property Details

Camera public_oe property

public UICamera,Shared Camera
Résultat UICamera

HasHouse public_oe property

public bool HasHouse
Résultat bool

IsChild public_oe property

public bool IsChild
Résultat bool