Exemple #1
0
    void InitBlockTeamPos(BlockTeam bt)
    {
        int iX = (this.GetWidth() - bt.GetWidth()) / 2;
        int iY = 0 - bt.GetTopOffset();

        bt.SetPos(iX, iY);
    }
Exemple #2
0
    public virtual BlockTeam Clone()
    {
        BlockTeam bt = Activator.CreateInstance(this.GetType()) as BlockTeam;

        bt.SetPos(this.GetPos().x, this.GetPos().y);
        bt.SetRotIndex(m_iIndexPos);

        return(bt);
    }
Exemple #3
0
 public void CopyTo(BlockTeam bt)
 {
     bt.SetPos(GetPos().x, GetPos().y);
     bt.SetRotIndex(m_iIndexPos);
 }