コード例 #1
0
        public static Courtesan clone(Role toClone, SimDescription actor)
        {
            Courtesan newRole = new Courtesan(toClone.Data, actor, toClone.RoleGivingObject);
            newRole.StartRole();

            return newRole;
        }
コード例 #2
0
        public static Courtesan AssignedRole(Sim sim)
        {
            Role      role      = sim.SimDescription.AssignedRole;
            Courtesan courtesan = role as Courtesan;

            return(courtesan);
        }
コード例 #3
0
        public static Courtesan clone(Role toClone, SimDescription actor)
        {
            Courtesan newRole = new Courtesan(toClone.Data, actor, toClone.RoleGivingObject);

            newRole.StartRole();

            return(newRole);
        }
コード例 #4
0
        public static CourtesansPerfume GetPerfume(Sim sim)
        {
            CourtesansPerfume perfume = null;
            Courtesan         role    = Courtesan.AssignedRole(sim);

            if (role != null)
            {
                perfume = role.GetPerfume();
            }
            return(perfume);
        }