Exemplo n.º 1
0
func NewStarState(super hsm.State) *StarState {
	object := &StarState{
		StateHead: hsm.NewStateHead(super),
	}
	super.AddChild(object)
	return object
}
Exemplo n.º 2
0
func NewCommentState(super hsm.State) *CommentState {
	object := &CommentState{
		StateHead: hsm.NewStateHead(super),
	}
	super.AddChild(object)
	return object
}
Exemplo n.º 3
0
func NewCodeState(super hsm.State) *CodeState {
	// initialized CodeState
	object := &CodeState{
		StateHead:  hsm.NewStateHead(super),
		entryCount: 0,
		initCount:  0,
	}
	// hook up to super
	super.AddChild(object)
	return object
}
Exemplo n.º 4
0
func NewVerboseStateHead(super hsm.State) *VerboseStateHead {
	return &VerboseStateHead{
		StateHead: hsm.NewStateHead(super),
	}
}