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.
Mostra file Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Properties

Property Type Description
Camera UICamera
HasHouse bool
IsChild bool

Public Methods

Method 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 method

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.
return void

Draw() public method

public Draw ( ) : void
return void

Head() public method

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
return void

SetAnimation() public method

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

Sim() public method

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?
return Files.Vitaboy

Update() public method

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.
return void

Property Details

Camera public_oe property

public UICamera,Shared Camera
return UICamera

HasHouse public_oe property

public bool HasHouse
return bool

IsChild public_oe property

public bool IsChild
return bool